mysql 1046错误解决实例_MySQL
require_once './include/common.inc.php';
$maxpostnum = 200; //设定最小帖子数量
if(!$discuz_user || !$discuz_pw) {
showmessage('对不起,您还没有登录,无法进行此操作。');
}
if(!$adminid ){
$query=$db->query("SELECT postnum,credit FROM bbs.cdb_members WHERE username = '$discuz_user'");
$blogaccess = $db->fetch_array($query);
if ($blogaccess['postnum'] showmessage ('对不起,您目前的等级无开通RSS聚合服务');
}
}
$query=$db->query("SELECT username FROM uploader.uploader_users WHERE username = '$discuz_user'");
$bloguser = $db->fetch_array($query);
if ($action=="") {
include template('rss_reg');
}
if ($action == "kaihu" ){
if (!$bloguser['user']){
$query=$db->query("SELECT uid,username,password,email,regdate FROM bbs.cdb_members WHERE username = '$discuz_user'");
$bloginfo = $db->fetch_array($query);
$db->query("INSERT INTO uploader.uploader_users (username, password, email, reg_date)
VALUES ('$bloginfo[username]' ,'$bloginfo[password]' ,'$bloginfo[email]' ,'$bloginfo[regdate]'");
$db->query("UPDATE bbs.cdb_members SET rss = 1 WHERE username = '$discuz_user'");
showmessage('帐户开通完毕,您可以进入管理了','http://rss.twbbs.biz');
}else {
$db->query("UPDATE bbs.cdb_members SET rss =1 WHERE username = '$discuz_user'");
showmessage('你的帐户已经开通','http://rss.twbbs.biz');
}
}
?>
SQL: INSERT INTO uploader.uploader_users (username, password, email, reg_date)
VALUES ('sa' ,'40c76244e235aa23e73acb4a457f9748' ,'sa@gmail.com' ,'1132236495'
Error: 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 '' at line 2
Errno.: 1064
必
推荐阅读
-
mysql 1046错误解决实例_MySQL
-
解决windows 2003 Sql2000中OLEDB分布式事务无法启动的解决方案_MySQL
-
Windows/Linux MySQL忘记root密码的解决方法
-
Mysql初学者:ERROR 1005错误处理_MySQL
-
这个警告不知道怎么解决mysql_fetch_array() expects parameter 1 to be resource
-
Linux下无法远程登入MySQL Server的解决
-
MySql中文乱码问题解决办法
-
win环境,mysql偶尔连不上!该怎么解决
-
MySQL数据库-错误1166 Incorrect column name
-
MySQL子查询用法实例分析