Forum Moderators: coopster

Message Too Old, No Replies

previouse postings id

true/false

         

Sarah Atkinson

5:57 pm on Jun 24, 2005 (gmt 0)

10+ Year Member



To get the the id of the previous insert the line would be.

$pid=mysql_insert_id();

Sarah
just wanted to ask since I won't be able to test till sometime next week then if it doesn't work I won't have a clue what's causeing it.

jatar_k

6:13 pm on Jun 24, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



true

and you have to feed it your db connection var

$pid=mysql_insert_id($connect);