how to get the id of a just inserted row php code example
Example 1: get id of record created php
" . mysqli_error($conn);
}
mysqli_close($conn);
?>
Example 2: find last id
//laravel controller
$newOrder = new Order();
...
...
$newOrder->save();
$last_id = $newOrder->id;