webhost

Web hosting

Thursday, February 16, 2012

To Get Last Insert Id in CodeIgniter Mysql


<?php
// Basic php mysql method 

mysql_insert_id();

 // CodeIgniter method 
$this->db->insert_id();?> 

1 comment: