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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…