RE: [PHP] mysql_insert_id()

From: Date: Wed, 24 Jan 2001 21:19:49 +0000
Subject: RE: [PHP] mysql_insert_id()
Groups: php.general 
Request: Send a blank email to php-general+get-36477@lists.php.net to get a copy of this message
> When you are using mysql_insert_id, you don't want to pass it > the result of your previous SQL statement as in: > $result = mysql"mydb", "My SQL statement", $my_connect) ; > $last_id = mysql_insert_id($result) This is what it sounds like it's looking for in the documentation. It could be just how I'm reading it. :p > Rather, you want to pass it the link identifier from your > mysql_connect like: > $result = mysql("mydb", "My SQL statement", $my_connect) ; > $last_id = mysql_insert_id($my_connect) Tried this, too, with no luck. :( I'm using mysql_pconnect() and mysql_connect() and neither seems to help my situation. Chris

« previous php.general (#36477) next »