Codice PHP:
$query "SELECT * FROM tabella";
$result mysql_query($query$db);
while (
$row mysql_fetch_array($result)){

$var $row['nome_campo_var'];