List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:January 31 2001 4:42pm
Subject:Re: 'insert_id' finction not working on V3.23.32
View as plain text  
At 12:08 PM -0500 1/30/01, Angela wrote:
>I'm guessing you're using PHP?  I know when we did some upgrades, the
>function changed.  It used to be mysql_inser_id([result set]), but when
>we upgraded it now wants mysql_insert_id([mysql link])
>I believe it was a change between PHP3 and PHP4, but I could be wrong
>since we upgraded MySQL at the same time.

mysql_insert_id() took a link identifier in PHP 3, too, not a result
identifier.

Most likely you were using it incorrectly and got lucky by having
it return the corrrect result.



>-Angela
>
>
>Julian Hiscock wrote:
>>
>>  We are running a program which uses the 'mysql_insert_id' function to get
>>  the id of an AUTO_INSERT key field. This used to work fine with MySQL V3.22,
>>  but now we've upgraded to V3.23.32 it doesn't seem to be working. The
>>  function simply returns the same value the whole time the program is
>>  running.
>>
>>  Anyone else experienced this or know of a possible cause?
>>
>>  Cheers,
>>
>  > Julian


-- 
Paul DuBois, paul@stripped
Thread
'insert_id' finction not working on V3.23.32Julian Hiscock30 Jan
  • Re: 'insert_id' finction not working on V3.23.32Angela30 Jan
    • Re: 'insert_id' finction not working on V3.23.32Paul DuBois31 Jan