$insert = "INSERT INTO event_tracker_table (event_name, event_location, location_number, event_creator_username, event_creator_email)
VALUES (
'".$_POST['event_name']."',
'".$_POST['event_location']."',
'".$_POST['location_number']."',
'".phpCAS::getAttribute('uid')."',
'".phpCAS::getAttribute('mail')."'
)";
$mysqli->query($insert);
How do I get this AUTO INCREMENT that was generated by MySQL? I've tried this but it doesn't work:
$statement = $mysqli->query($insert);
echo $statement->insert_id;