当我运行以下内容时,我得到解析错误。我是一个菜鸟
<?php
//Connecting to sql db.
$connect = mysqli_connect("localhost","root","","dbname");
//Sending form data to sql db.
mysqli_query($connect,"INSERT INTO `as_questions`(`Qid`, `M_class`, `S_class`,`Question`, `Answer`, `Doctor`, `Time`) VALUES
('n','n','n','q','a','d','')";?>
答案 0 :(得分:0)
你忘了)
//Connecting to sql db.
$connect = mysqli_connect("localhost","root","","dbname");
//Sending form data to sql db.
mysqli_query($connect,"INSERT INTO `as_questions`(`Qid`, `M_class`, `S_class`, `Question`, `Answer`, `Doctor`, `Time`) VALUES
('n','n','n','q','a','d','')");