How do I insert data to a table where the third column is autoincreaseing? Like
*age*nr*id*name*surname * time
Where id is autoincreasing.
Code: Select all
IF($stmt=$mysqli->prepare("INSERT INTO user (age, nr, name, surname, time) VALUES (?, ?, ?, ?, ?)" )) {
$stmt->bind_param('iisss' $age, $nr, $name, $lname, $time);
$stmt->execute();
}
Thanks