把语句打印出来
放在phpmyadmin或者命令行里面运行
看看是否能成功插入数据
echo
$sql = "INSERT INTO $ymcms_info_table (userid,topicid,username,sortid,title,link,uselink,dateline,pagetext,author,authoremail,fromsite,siteurl,parseurl,allowbbcode,allowimages,allowhtml,allowsmilie,ipaddress,isshow) VALUES ('$userid','$topicid','$username','$sortid','$title','$link','$uselink','$dateline','$pagetext','$author','$authoremail','$fromsite','$siteurl','$parseurl','$allowbbcode','$allowimages','$allowhtml','$allowsmilie','$ipaddress','$isshow')";
放在phpmyadmin或者命令行里面运行
看看是否能成功插入数据
echo
$sql = "INSERT INTO $ymcms_info_table (userid,topicid,username,sortid,title,link,uselink,dateline,pagetext,author,authoremail,fromsite,siteurl,parseurl,allowbbcode,allowimages,allowhtml,allowsmilie,ipaddress,isshow) VALUES ('$userid','$topicid','$username','$sortid','$title','$link','$uselink','$dateline','$pagetext','$author','$authoremail','$fromsite','$siteurl','$parseurl','$allowbbcode','$allowimages','$allowhtml','$allowsmilie','$ipaddress','$isshow')";
我也在命令行中输入上述代码,结果提示:
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that
corresponds to your MySQL server version for the right syntax to use near 'echo
$sql="INSERT INTO $ymcms_info_table(userid,topicid,username,sortid,title,li' at
line 1
救救我啊,还是搞不定阿!!
再把修改用户密码的问题解决了,就结贴!
万分感谢gzty(风逍遥) xjflyttp(疯子nOvEr) !