in reply to How do I find the value MYSQL assigned to an AUTO_INCREMENT ID (int) Field?
If you are still in the stone ages (like me) and have a version of mysql older than 3.22.2? (23, I think), you must use $sth->{insertid}. Newer versions warn us that this is deprecated. Newer versions should use $sth->{mysql_insertid}.
Not trying to muddy the waters, but hoping to prevent confusion for people too lazy to upgrade (like me). :-)
Russ
|
|---|