Hello,
I was trying out this function and all I get back is zero.
My test table is defined as :
id mediumnint (7) unsigned autoincrement
field1 varchar 50
field2 char 1
$sql = "INSERT INTO table(field1,field2) VALUES ('$field1','$field2')";
$id = mysql_insert_id();
The record is written and the id value is fine in the MySQL Db table
Am I missing something ?
Thanks