Codice PHP:

$result 
mysql_query("SELECT gma, msg FROM messaggio");
echo 
"<table>";

while (
$row mysql_fetch_array($resultMYSQL_NUM)) {
   
printf("<tr><td>Data:</td><td> %s </td><td>Messaggio:</td><td> %s</td></tr>"$row[0], $row[1]);
}
echo 
"</table>";
mysql_free_result($result); 
Prova così.
Ciao