Salut ;-)
Je te propose une autre solution (si ta table a un grand nombre d'enregistrements)
mysql_connect('hote','user','passe');
$requete=mysql_query('SELECT MAX(id) FROM ta_table');
$max=mysql_fetch_row($requete); //je sais plus si le max accepte le fetch_row, à tester
$max=$max[0];
$requete=mysql_query('SELECT fiche FROM table WHERE id='.$max);
mysql_close();
a ++
Vulgarisation informatique : Entraide, dépannage et vulgarisation informatique
Forum d'ent