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
Mentre se voglio vedere solo un record funziona!!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);
?>
Grazie Sbarboff