Say I got 20 records in a MYSQL DB. I go into PHPMyAdmin and drop (it's
that "X" icon) the last three (3) records. Then I run a PHP script to
add 3 records to the DB. I have an autoincrement PK field and I'm using
mysql_insert_id to add fields in other tables subsequently... Well, the
auto-increment starts at 21. Here's my question:
What would be the method to just at the end (ie. 18-20) "really" delete
those "ghost" records or reset somehow so that auto-increment knows to
start at 18 again.?
I got no problem with holes (ie. 1,2..5,6) but i want stuff at the wiped
if possible.
that "X" icon) the last three (3) records. Then I run a PHP script to
add 3 records to the DB. I have an autoincrement PK field and I'm using
mysql_insert_id to add fields in other tables subsequently... Well, the
auto-increment starts at 21. Here's my question:
What would be the method to just at the end (ie. 18-20) "really" delete
those "ghost" records or reset somehow so that auto-increment knows to
start at 18 again.?
I got no problem with holes (ie. 1,2..5,6) but i want stuff at the wiped
if possible.
Comment