note 15592 deleted from function.mysql-insert-id by irc-html

From: Date: Sat, 26 Jan 2002 12:58:55 +0000
Subject: note 15592 deleted from function.mysql-insert-id by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-25844@lists.php.net to get a copy of this message
Everything seems O.K. but mysql_insert_id(); always print "0". Any idea ? $query =("insert temp (sex, image, picture) values ('".$sex."', '".$image."', '".$picture."') "); $result = mysql_query($query,$conn); $new_id = mysql_insert_id(); My server spec; Apache/1.3.20 (Unix) PHP/4.0.5 Mysql 3.23.39

« previous php.notes (#25844) next »