"Matthew Loff" <[EMAIL PROTECTED]> wrote in message
002b01c12b64$92e1cc80$0100a8c0@bang">news:002b01c12b64$92e1cc80$0100a8c0@bang...
>
> This has been covered countless times on the list... :)
>
> http://www.php.net/manual/en/function.mysql-insert-id.php
I figured as much. Thanks guys!
--
This has been covered countless times on the list... :)
http://www.php.net/manual/en/function.mysql-insert-id.php
-Original Message-
From: Grant Boggs [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 7:24 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Getting key of row just
mysql_insert_id()
Grant Boggs wrote:
> What's the best way to get the primary key of a row just inserted into a
> mySQL database?
--
Chris Hobbs Silver Valley Unified School District
Head geek: Technology Services Coordinator
webmaster: http://www.silvervalley.k12.ca.
What's the best way to get the primary key of a row just inserted into a
mySQL database?
If the primary key is autoincrement, I insert a row. It's successful,
but now how to do I read back the key of this table?
Right now I'm adding a md5 hash of the session id into the row I'm
inse