Oppure
$query = 'SELECT * FROM db_table ORDER BY id DESC'; $result = mysql_query($query); $riga_dati = mysql_fetch_array($result);