MySQL Forums
Forum List  »  PHP

Re: Having trouble with mysqli_insert_id mysql stored procedure in php
Posted by: Andrew James
Date: February 02, 2017 08:49PM

I have take a look at that link https://www.artfulsoftware.com/infotree/tip.php?id=777&r=1

Then I try to modify like this:

$sql = $connection->multi_query( "CALL registerusers(@new_id,$Firstname,$Lastname,$Password,$EmailAddress,$Salt,$RoleID);SELECT @new_id" );

echo "new record has id:" . mysqli_insert_id($connection);


but it still didn't work at all.

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.