Re: Re[2]: [PHP] A small question - Mysql_insert_id

2002-06-03 Thread Jim lucas
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:06 AM Subject: Re[2]: [PHP] A small question - Mysql_insert_id r

Re: Re[2]: [PHP] A small question - Mysql_insert_id

2002-06-03 Thread Philip Olson
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

[PHP] A small question - Mysql_insert_id

2002-06-01 Thread r
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

Re: [PHP] A small question - Mysql_insert_id

2002-06-01 Thread Julie Meloni
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()); r

Re: [PHP] A small question - Mysql_insert_id

2002-06-01 Thread r
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

Re: [PHP] A small question - Mysql_insert_id

2002-06-01 Thread Stuart Dallas
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

Re[2]: [PHP] A small question - Mysql_insert_id

2002-06-01 Thread Julie Meloni
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 inserted