Saved X
Google login
SignUp with Email
X

Last_insert_id() php

theindreshverma ( Added  May 07, 10:53 pm )
Login

<?php
$sql = "INSERT INTO table(column) VALUES ('value')";

if (mysqli_query($con, $sql)) {
  $last_id = mysqli_insert_id($con);
  echo $last_id;
}
?>

Sourcecode Tags

More Sourcecodes

More Sourcecodes