Trasportando i tag HTML <p al di fuori del ciclo while
Ciao!Codice PHP:$result = @mysql_query('SELECT * FROM dati order by id desc limit 1');
if (!$result) {
exit('
Error performing query: ' . mysql_error() . '</p>');
}
//Display the text of each joke in a paragraph
echo '
';
while ($row = mysql_fetch_array($result)) {
echo $row['id'];
}
echo '</p>';

Rispondi quotando