Date: 02/28/00
- Next message: Martin Decker: "Fwd: [PHPLIB] Insert -> select"
- Previous message: Richard Valk: "[PHPLIB] Insert -> select"
- In reply to: Richard Valk: "[PHPLIB] Insert -> select"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Mon, 28 Feb 2000, Richard Valk wrote:
> Small question concerning insert queries:
>
> If I insert a customer into a customer table with an autoincrement index
> field, how can I get the value of the index field after the insert query.
>
> In the mysql docs there is a function called "mysql_insert_id", how do I
> use this from phplib.
'SELECT id FROM table WHERE id IS NULL' should return the autoincremented
id.
-- Tot ziens,Bart-Jan
- PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>. To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in the body, not the subject, of your message.
- Next message: Martin Decker: "Fwd: [PHPLIB] Insert -> select"
- Previous message: Richard Valk: "[PHPLIB] Insert -> select"
- In reply to: Richard Valk: "[PHPLIB] Insert -> select"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

