![]() |
|
|
+ Search |
![]()
|
Dec 13th, 2000 19:50
Marc DePoe, Jason Parrett, agnes rynkiewicz, Ben Udall,
This should work if you have an auto increment id for each record.
$sql=myql_query("SELECT * FROM table ORDER BY id DESC LIMIT 1");
if you have an id field... try this ...
$sql=myql_query("SELECT MAX(id) from table");