In PHP, how do I get the field name of the field that's been set as to auto increment when a new rec is added to it?
In most cases, it's the same as the PRIMARY_KEY of the table but not necessarily always.
So this question has 2 parts with the second one branching into a 3rd part.
1- How to get the name of the auto-incrementing field name...
2- How to get the name of the primary_key field name...
2.1 How to get the primary_key(s) info when a table uses more than one field as its primary key...