Originariamente inviato da Sbarboff2005
Ciao a tutti,

non riesco a capire dove sbaglio, quando cerco di fare vedere piu record che ho nel database mi da questo errore:

Parse error: parse error, unexpected T_INLINE_HTML, expecting T_WHILE in K:\Program Files\xampp\htdocs\hb9fax.ch.riprog\content.inc.ne ws.php on line 19

Codice PHP:
<?php require_once("connessione/connessione.php");?>
<?php

// Recordset Foto

mysql_select_db($database_name$conn) or die ("Errore nel selezionare il database :" mysql_error());
$query_foto "SELECT * FROM tb_foto";
$foto mysql_query($query_foto$conn) or die (mysql_error());
$righe_foto mysql_fetch_assoc($foto);

?>

<table width="300" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="300">
    <?php { do ?>
        <table width="300" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><?php echo $righe_foto['FotoLink'];?></td>
      </tr>
    </table>
    <?php } while ($righe_foto mysql_fetch_assoc($foto)); ?></td>
  </tr>
</table>

<?php
mysql_free_result
($foto);
?>
Mentre se voglio vedere solo un record funziona!!

Grazie Sbarboff

mi spiego meglio:

// Recordset Foto

mysql_select_db($database_name, $conn) or die ("Errore nel selezionare il database :" . mysql_error());
$query_foto = "SELECT * FROM tb_foto";
$foto = mysql_query($query_foto, $conn) or die (mysql_error());
while($data_array=mysql_fetch_array($foto)
{
$righe_foto = $data_array('campo');
....codice html
}

spero di essere stato chiaro