OIC, I deleted some record and id 3-5 become missing.
I want to use the following scripts to change the gbID to corresponding order.
mysql_query("UPDATE guestbook2 SET gbID='$i' WHERE gbID>0");
However, I have no idea to make the variable $i auto-increased by 1.
Could I made $i = 1,2,3,4,5...etc and fill them in row 1,2,3,4,5...etc?