解析错误:语法错误,意外情况' INTO' (T_STRING)在第18行的C:\ xampp \ htdocs \ DB \ info.php
systemctl daemon-reload
答案 0 :(得分:0)
首先,你没有双引号或单引号,而是你得到“这是不可接受的PHP用双qotes代替它们”你会没事的
答案 1 :(得分:0)
这是正确的查询
$user_info = "INSERT INTO studentinfo (user_name, roll_number, user_batch,user_from,user_year, user_level, F_name, m_name, g_name, mob_number, addressline1, addressline2, city, pmob_number, land_number, cutoff, dept, medium, locality, intrest, scholar, income, user_caste, user_admit, user_stay) VALUES ('$_POST[user_name]', '$_POST[roll_number]','$_POST[user_batch]','$_POST[user_from]','$_POST[user_year]','$_POST[user_level]','$_POST[F_name]','$_POST[m_name]','$_POST[g_name]','$_POST[mob_number]','$_POST[addressline1]','$_POST[addressline2]','$_POST[city]','$_POST[pmob_number]','$_POST[land_number]','$_POST[cutoff]','$_POST[dept]','$_POST[medium]','$_POST[locality]','$_POST[intrest]','$_POST[scholar]','$_POST[income]','$_POST[user_caste]','$_POST[user_admit]','$_POST[user_stay]')";
尝试使用“(双引号)并删除查询结尾的最后一个逗号