Guest_imported
New member
- Jan 1, 1970
- 0
I made a guestbook, now I want to make something that renumbers the guestbook ID when one or more are deleted so there aren't any "holes" (1, 3, 8, 10).
I have an idea how to do this, but have no idea how to make the code...
1. Read guestbook messages into an array (there are 12 records)
2. Drop table/ re-create table
3. Have another array sort out the posts and renumber the entries (1, 2, 3, 4 instead of 1, 3, 8, 10)
4. Insert new updated rows into table.
Is it possible to do that, and if so, could someone please help me with it?
Thanks!
I have an idea how to do this, but have no idea how to make the code...
1. Read guestbook messages into an array (there are 12 records)
2. Drop table/ re-create table
3. Have another array sort out the posts and renumber the entries (1, 2, 3, 4 instead of 1, 3, 8, 10)
4. Insert new updated rows into table.
Is it possible to do that, and if so, could someone please help me with it?
Thanks!