PHP Classes

mysql_insert_id();

Recommend this page to a friend!

      Ultimate MySQL  >  All threads  >  mysql_insert_id();  >  (Un) Subscribe thread alerts  
Subject:mysql_insert_id();
Summary:No mysql_insert_id when creating new record.
Messages:1
Author:jack sheppard
Date:2011-01-17 20:59:59
 

  1. mysql_insert_id();   Reply   Report abuse  
Picture of jack sheppard jack sheppard - 2011-01-17 20:59:59
No mysql_insert_id when creating new record.

Fix:

$this->last_insert_id = mysql_insert_id();

->

$this->last_insert_id = mysql_insert_id($this->mysql_link);