It looks like you're new here. If you want to get involved, click one of these buttons!
The Royal Ram
Forge wrote: $query = "SELECT * FROM table ORDER BY id DESC LIMIT 1"; $result = mysql_query($query);
$query = "SELECT MAX(ID) AS idmax FROM table"; $result = mysql_query($query);
Comments
$query = "SELECT * FROM table ORDER BY id DESC LIMIT 1";
$result = mysql_query($query);
[/php]
Should work..
Wouldnt it need to order them highest to lowest and then only select one?
The Royal Ram
Thanks
The Royal Ram
http://www.thekey.it