i have a news system which runs off the id of the news item,
the system allows the owner to delete a record if the wish,
this removes the record from the database taking with it that auto_incriment
ID
so i would end up with
ID
----
38
39
41
42
etc
so when someone views article 39 and i do
<a href=news.php?i d=<?php $id+1; ?> for the "next>>" button and record 40
doesnt exist it errors
how can i resort the table to suffle all the id's so there are no gaps like
this
Thanks
Greg
the system allows the owner to delete a record if the wish,
this removes the record from the database taking with it that auto_incriment
ID
so i would end up with
ID
----
38
39
41
42
etc
so when someone views article 39 and i do
<a href=news.php?i d=<?php $id+1; ?> for the "next>>" button and record 40
doesnt exist it errors
how can i resort the table to suffle all the id's so there are no gaps like
this
Thanks
Greg
Comment