hi ther I use this mysqli code to insert in DB.
mail DB has an id AUTO_INCREMENT.
$sql = "INSERT INTO mail (".$sqlname.") VALUES (".$sqlValue.")";
if (!($conn->query($sql) === TRUE))
{
echo 'false';
return false;
}
else
return $id; // return id of insereted record in table
Is there any way to return id in mail table realtime after insert?
I can call last ID by call another function....But it may gone wrong for high traffick insert to DB.