[PHP] Re: mysql_insert_id

2002-09-11 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > Hi guys, > > I never can get mysql_insert_id? > Is this broken with PHP4? > Please let me know if you can get it to work. or work around. > > Thanks. I have had no problem with it - perhaps if you could show the list your code someon

[PHP] Re: mysql_insert_id

2002-09-11 Thread Erwin
Clemson Chan wrote: > Hi guys, > > I never can get mysql_insert_id? > Is this broken with PHP4? > Please let me know if you can get it to work. or work around. It works here, but it returns only an ID if the table in which you add a record has a AutoIncrement column, because it will returns the v

[PHP] Re: mysql_insert_id?

2002-02-21 Thread Christian Novak
"Wee Chua" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > Is it possible that I would get the wrong ID (Not the ID I just inserted in > Auto_Increment field) by using mysql_insert_id function if someone is also > inserting record at the same time? H

[PHP] Re: mysql_insert_id + mysql_pconnect = race condition??

2001-11-21 Thread Richard Lynch
Marc Swanson wrote: > In my code I have a few places where I use mysql_pconnect to open a > persistant database connection to mysql in order to reduce overhead. I > also use mysql_insert_id to fetch insert ids for various insert commands. > > Since mysql_pconnect uses the SAME database connecti

[PHP] Re: mysql_insert_id()

2001-07-07 Thread Inércia Sensorial
I used this function with a BIGINT field once, and it worked. I guess problemas appear when it goes beyond an INT filed, or, the number you are retrieving has more than 11 digits. -- Julio Nobrega. A hora está chegando: http://sourceforge.net/projects/toca "John Meyer" <[EMAIL PROTECTED]>

[PHP] Re: mysql_insert_id()

2001-07-07 Thread maatt
> I have been reading about this function and I have a question. The PHP > manual warns about using it if your AUTO_INCREMENT ID field is a BIGINT. I > am using type INTEGER. Am I okay with this one, or should I use the MySQL > function. Works just fine in everything I do. Maatt -- PHP Gene