Get the MySQL ID of record insertion
Hello,
How do we return the record id of an auto-incremented Insert record with MySQLi Insert behavior?
...
...
...
$InsertQuery->execute();
// added mysql_insert_id to catch insertion #
$last_id = mysqli_insert_id($wildwater_i);
$last_id2 = $mysqli->insert_id;
$InsertGoTo = "";
if (function_exists("rel2abs")) $InsertGoTo = $InsertGoTo?rel2abs($InsertGoTo,dirname(__FILE__)):"";
$InsertQuery->redirect($InsertGoTo);
}
?>
This is not working in either case tested so maybe a clash with WA function?