How to get the last id inserted in my database
here is my code:
$id = $_POST['c_id'];
$var_id = $_POST['var_id'];
$var_name = $_POST['variable_name'];
$saveVar = "INSERT INTO ".$table_sub_var."
VALUES(NULL,".$var_id.",".$var_name.")";
mysqli_query($connect,$saveVar);