Jim-
Please don't post such useless garbage to the lists. The
thread was dead, mistakes were made, time to move on. We
all make mistakes from time to time (frustration), and can
only learn from them. Draft folders are good.
Regards,
Philip Olson
> and you want people to actually ready yo
stead of
shitting on them and telling them to f*** off?
Just an observation
Jim Lucas
- Original Message -
From: "Julie Meloni" <[EMAIL PROTECTED]>
To: "r" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Saturday, June 01, 2002 8:0
r> Actually the ID field is not null,primary and auto_increment.
Well, it has to be of a TYPE as well...
r> Thanks for the URL but in my message I did quote the line from that same url
r> (http://www.php.net/manual/en/function.mysql-insert-id.php)
r> I just need to get the ID of the just insert
On Sunday, June 2, 2002 at 4:07:31 AM, you wrote:
> will this return the row number or the "id" fields value..?
> If it returns the row number how do I get the ID number?
> The id started at 1500.
>From the manual page for mysql_insert_id()...
"mysql_insert_id() returns the ID generated for an A
Hey Julie,
Thanks for replying,
Actually the ID field is not null,primary and auto_increment.
Thanks for the URL but in my message I did quote the line from that same url
(http://www.php.net/manual/en/function.mysql-insert-id.php)
I just need to get the ID of the just inserted record.
Any idea
r> I am inserting a row into a table with this structure
r> id (auto increment)
...
Assuming you mean ID int not null primary key auto_increment (or
something like that).
r> Then according to the manual I have to use (to quote)
r> "printf ("Last inserted record has id %d\n", mysql_insert_id());"
Hi,
I am inserting a row into a table with this structure
id (auto increment)
name (varchar)
hits (int)
I am using
insert into mytable values(NULL,'Ryan',90);
Then according to the manual I have to use (to quote)
"printf ("Last inserted record has id %d\n", mysql_insert_id());"
will this return
7 matches
Mail list logo