Page 1 of 1

getting the value of auto_increment field

Posted: Wed Feb 28, 2007 4:08 pm
by sarris
Hi there,
I am adding an entry into a table, in the traditional way (forming a $sql variable to contain the querry, then mysql_query()), and this table contains a field named "id" that is auto_increment. My question is if there is a way to obtain the value "id" of the newly inserted element...
Thank you for anything you can do

Posted: Wed Feb 28, 2007 4:12 pm
by Weirdan

Posted: Wed Feb 28, 2007 4:33 pm
by sarris
thank you very much