Can anybody tell me how to call on the last record in a table with auto_increment id?
I tried this:
$sql = "SELECT * FROM inter1 order by id ASC";
$result = mysql_query($sql);
$r = mysql_fetch_array($result);
This is how I call it:
<? echo $r[id] ?>
I still get 1 when it should by like 26.
Please help.