note 15592 added to function.mysql-insert-id

From: Date: Sat, 22 Sep 2001 00:27:15 +0000
Subject: note 15592 added to function.mysql-insert-id
Groups: php.notes 
Request: Send a blank email to php-notes+get-18153@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 http://kr.php.net/manual/kr/function.mysql-insert-id.php

« previous php.notes (#18153) next »