can someone please verify the proper way of inserting data using MYSQLI?
i need to insert comment data into the table with ID set as auto-increment. do i just leave the values for id as blank ?
$db = dbConnect();
$query = "INSERT INTO comments values ('', '$comment')";
$db->query($query);
See Question&Answers more detail:os