Ok, basically what I have is a table which has got a load of data stored in it.
There is a column calld ID which is unique and is auto_increment.
What I want to do is to extract the row which has the highest ID number and put it into an array.
How can this be done? Thanks
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