mysql_insert_id
bastien
From: "Aaron Todd" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [PHP-DB] getting data back when inserting
Date: Wed, 1 Dec 2004 11:01:19 -0500
I was wondering if somone might be able to suggest a command to me...I am
inserting data into a MySQL data
ould use something like:
>
> SELECT max(id) FROM ...
>
> But I think the first command is what you're looking for.
>
> Stefan
>
>
> > -Ursprüngliche Nachricht-
> > Von: Aaron Todd [mailto:[EMAIL PROTECTED]
> > Gesendet: Mittwoch, 1. Dezember 2
t you're looking for.
Stefan
> -Ursprüngliche Nachricht-
> Von: Aaron Todd [mailto:[EMAIL PROTECTED]
> Gesendet: Mittwoch, 1. Dezember 2004 17:01
> An: [EMAIL PROTECTED]
> Betreff: [PHP-DB] getting data back when inserting
>
> I was wondering if somone might
Dezember 2004 17:01
> An: [EMAIL PROTECTED]
> Betreff: [PHP-DB] getting data back when inserting
>
> I was wondering if somone might be able to suggest a command to me...I am
> inserting data into a MySQL database that has an auto-incrementing primary
> field. When I insert the
TG
> -Original Message-
> From: Aaron Todd [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 01, 2004 11:01 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-DB] getting data back when inserting
>
>
> I was wondering if somone might be able to suggest a command
>
I was wondering if somone might be able to suggest a command to me...I am
inserting data into a MySQL database that has an auto-incrementing primary
field. When I insert the data I would like to somehow get the value of the
auto-incrementing primary field. I thought I could just run a SELECT