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
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
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
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
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
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
6 matches
Mail list logo