Skip to content

Instantly share code, notes, and snippets.

@J2112O
Created September 18, 2021 23:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save J2112O/793538688073cdea16c22019feb1cfdb to your computer and use it in GitHub Desktop.
Save J2112O/793538688073cdea16c22019feb1cfdb to your computer and use it in GitHub Desktop.
public function users() {
$user_model = new UserModel();
$data = [
'first_name' => 'Jane',
'last_name' => 'Doe',
'dob' => '2021-01-01'
];
$last_insert_id = $user_model->dataInsert($data);
echo 'Last Insert ID is: '. $last_insert_id;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment