Salve, vorrei sapere come faccio ad estrapolare i primi 5 record di una tabella.

Io al momento uso questa stringa:


codice:
<?php
include ("dati.txt");

mysql_connect($host,$user,$password);

mysql_select_db("$db");

print ("");

$dati = mysql_query ("select * from tabellax order by id DESC LIMIT='1'");    

while ( $array = mysql_fetch_array($dati) )

{
print ("[*]$array[record]");

}

?>

Grazie!