Codice PHP:
    while ($Riga mysql_fetch_array ($ris_query))
      {
          echo
            
"
            <tr align=center>
                "
            
if ($Riga[Foto1]!= "")  {"<td>[img].$Riga[Foto1].[/img]</td>"} else {""}
            if (
$Riga[Foto2]!= "")  {"<td>[img].$Riga[Foto2].[/img]</td>"} else {""}
            if (
$Riga[Foto3]!= "")  {"<td>[img].$Riga[Foto3].[/img]</td>"} else {""}
            if (
$Riga[Foto4]!= "")  {"<td>[img].$Riga[Foto4].[/img]</td>"} else {""}
            if (
$Riga[Foto5]!= "")  {"<td>[img].$Riga[Foto5].[/img]</td>"} else {""}
            if (
$Riga[Foto6]!= "")  {"<td>[img].$Riga[Foto6].[/img]</td>"} else {""}
            if (
$Riga[Foto7]!= "")  {"<td>[img].$Riga[Foto7].[/img]</td>"} else {""}
            if (
$Riga[Foto8]!= "")  {"<td>[img].$Riga[Foto8].[/img]</td>"} else {""}
            if (
$Riga[Foto9]!= "")  {"<td>[img].$Riga[Foto9].[/img]</td>"} else {""}
            if (
$Riga[Foto10]!= "")  {"<td>[img].$Riga[Foto10].[/img]</td>"} else {""}
                
"
            </tr>