解析错误:语法错误,意外&#39 ;;'我不知道什么是错的o.o

时间:2016-01-30 17:35:37

标签: php html sql

当我运行以下内容时,我得到解析错误。我是一个菜鸟

   <?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','')";?>

1 个答案:

答案 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','')");