Suppose I got this function:
How do I change the return mysql_insert_id() to $db -> showthing?PHP Code:/**
* @return void
* @param Data Array $array
* @desc creates static content item
*/
function createItem($array) {
global $db;
$db -> autoExecute('trips_ads', $array, DB_AUTOQUERY_INSERT);
return mysql_insert_id();
}
I couldn't find it. and I didn't understand how to use the nextId()



B nextId is even less multi user/page proof than the last_insert_id so you'd be better off with last_insert_id but it works.


Bookmarks