Date: 10/31/02
- Next message: DonPro: "Re: [PHP] Saving form input fields to MySQL br clicking on a button"
- Previous message: PHP List: "Re: [PHP] Saving form input fields to MySQL br clicking on a button"
- Next in thread: Chase Urich: "Re: [PHP] SQL>Insert and recover the ID"
- Reply: Chase Urich: "Re: [PHP] SQL>Insert and recover the ID"
- Reply: 1LT John W. Holmes: "Re: [PHP] SQL>Insert and recover the ID"
- Reply: John Meyer: "RE: [PHP] SQL>Insert and recover the ID"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello,
In a table, I have some fields and the primary key is an autoincrement
field. I insert an row and I'd like to recover the ID used for the last
record I inserted.
For the moment, I do a select max(Id) just after the insert but there
is, my be a best way to do it.
Thanks for your help
Christian,
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: DonPro: "Re: [PHP] Saving form input fields to MySQL br clicking on a button"
- Previous message: PHP List: "Re: [PHP] Saving form input fields to MySQL br clicking on a button"
- Next in thread: Chase Urich: "Re: [PHP] SQL>Insert and recover the ID"
- Reply: Chase Urich: "Re: [PHP] SQL>Insert and recover the ID"
- Reply: 1LT John W. Holmes: "Re: [PHP] SQL>Insert and recover the ID"
- Reply: John Meyer: "RE: [PHP] SQL>Insert and recover the ID"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

