Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

mysql get the last id php

// Insert query 
$query = "insert into users(username,fname,lname) values('sonarika','Sonarika','Bhadoria')"; 

mysqli_query($con,$query); 

// Get last insert id 
$lastid = mysqli_insert_id($con); 
Source by makitweb.com #
 
PREVIOUS NEXT
Tagged: #mysql #id #php
ADD COMMENT
Topic
Name
4+7 =