Let’s say I have a MySQL table and a table has a row with id and it has auto_incremented. Let’s say via MySQL query and PHP, I add a row. The first row has id of 1. Then I manually add a second row (via phpmyadmin) with the id of 2. If I do a third MySQL insert via PHP… what would the id be for the third row… 2 or 3?
Question is… does auto_increment take into account manual inputs?
Yes it does. But I hope you do not really type in the ID manually, right? 🙂 Just leave this field alone when inserting (manually or programatically), MySQL will take care of it for you.