RE: [PHP] How to get the auto-incremented value?

2004-03-01 Thread Angelo Zanetti
run a query: select query from table order by id desc hope this helps -Original Message- From: Brian Dunning [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 6:10 PM To: [EMAIL PROTECTED] Subject: [PHP] How to get the auto-incremented value? When I write a record

Re[2]: [PHP] How to get the auto-incremented value?

2004-03-01 Thread Richard Davey
Hello Angelo, Monday, March 1, 2004, 1:18:51 PM, you wrote: AZ When I write a record to a MySQL db with an auto-incremented key AZ column, say it's called id, what's the easy to retrieve that value? AZ Do I have to run a query? AZ run a query: AZ select query from table order by id desc Why

Re: [PHP] How to get the auto-incremented value?

2004-03-01 Thread John Nichel
Angelo Zanetti wrote: run a query: select query from table order by id desc hope this helps -Original Message- From: Brian Dunning [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 6:10 PM To: [EMAIL PROTECTED] Subject: [PHP] How to get the auto-incremented value? When I write

Re: [PHP] How to get the auto-incremented value?

2004-02-26 Thread Gareth Williams
The function mysql_insert_id() will return the correct value. On 26 Feb 2004, at 17:10, Brian Dunning wrote: When I write a record to a MySQL db with an auto-incremented key column, say it's called id, what's the easy to retrieve that value? Do I have to run a query? -- PHP General Mailing

Re: [PHP] How to get the auto-incremented value?

2004-02-26 Thread Brian Dunning
On Feb 26, 2004, at 8:14 AM, Gareth Williams wrote: The function mysql_insert_id() will return the correct value. Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to get the auto-incremented value?

2004-02-26 Thread Brian Dunning
When I write a record to a MySQL db with an auto-incremented key column, say it's called id, what's the easy to retrieve that value? Do I have to run a query? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php