Re: [PHP] how can I get the id of the last record I inserted into a table with an insert query?

2004-03-29 Thread Ben Joyce
hello. mysql_insert_id() should do what you need. lovely function, that one. hth, ben "Diana Castillo" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > how can I get the id of the last record I inserted into a table with an > insert query? (into Mysql database) > -- > Diana Cast

Re: [PHP] how can I get the id of the last record I inserted into a table with an insert query?

2004-03-29 Thread Richard Davey
Hello Diana, Monday, March 29, 2004, 1:40:41 PM, you wrote: DC> how can I get the id of the last record I inserted into a table with an DC> insert query? (into Mysql database) mysql_insert_id() The manual is your friend. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.ht

[PHP] how can I get the id of the last record I inserted into a table with an insert query?

2004-03-29 Thread Diana Castillo
how can I get the id of the last record I inserted into a table with an insert query? (into Mysql database) -- Diana Castillo Global Reservas, S.L. C/Granvia 22 dcdo 4-dcha 28013 Madrid-Spain Tel : 00-34-913604039 ext 214 Fax : 00-34-915228673 email: [EMAIL PROTECTED] Web : http://www.hotelkey.com