Menu
How can I get the ID of the row I just entered
“`
if ($stmt = $con->prepare($SQL)) {
$stmt->bind_param(‘sssssssss’, $userName, $userFirstName, $userLastName, $gender, $dob, $email, $pwd,
} else {
die(“Errormessage: “. $con->error);
}
$stmt->execute();
$newrId = $con->insert_id;
Here’s where I’m at, it inserts data okay but can’t get back the ID