Its very useful php function to find the last inserted id. when we are dealing with the php projects many times need to get the last inserted record’s id.
Here i have written the php function………..
In mysql get last inserted id by using php pre-defined function after the mysql execution
$last_id = mysql_insert_id();