Thread: auto_increment
View Single Post
Old 02-26-2003, 08:29 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
it shouldnt' matter that the id's are not sequencial.

for example .. no matter how you ordered your news .. this would pull up the last 5 articles:
PHP Code:
<?
$result
=mysql_query("select * from news order by news_id desc limit 5");
?>
but then again, your right, .. i don't see your code.
sde is offline   Reply With Quote