Re: [PHP] last_insert_id function: I did already

2001-01-24 Thread Alain Fontaine
Hi, To use mySQL's internal function, try something like this: mysql_query("insert into mytable values(1,2,3)"); $rs = mysql_query("select LAST_INSERT_ID() from mytable"); $theLastInsertedID = mysql_result($rs,0,0); ""Jacky@lilst"" <[EMAIL PROTECTED]> a écrit dans le message news: 05f701c0865b$

Re: [PHP] last_insert_id function: I did already

2001-01-24 Thread [EMAIL PROTECTED]
I did try already. What I did was I assign value from LAST_INSERT_ID(); onto a virable after I run the first insert query the same way we do to mysql_insert_id and the result when the page is executed, it said " unidentified function" which of course because php does not know LAST_INSERT_ID like y