我试图为我的CMS系统注册。但每当我尝试创建它时,它都会给我这个错误
以下信息适用于网站开发人员以进行调试。 处理请求时发生错误 执行数据库查询时出错。 您的SQL语法有错误;检查与您的MySQL服务器版本相对应的手册,以便在'',' 0',' 500000',' 500000&#附近使用正确的语法39;,' 2012-11-02 22:12:11'',' 20',' 1',&#39 ; HR-165-45.hd-20'在第2行
SQL查询是这样的:
<cfquery name="insertMale" datasource = "#DSN#">
INSERT INTO users (id, username, real_name, password, auth_ticket, rank, vip_points, credits, activity_points, activity_points_lastupdate, seasonal_currency, loyalty_points, look, gender, motto, mail, account_created, last_online, online, ip_last, ip_reg, home_room, newbie_status, is_muted, mutant_penalty, mutant_penalty_expire, trade_lock, trade_lock_expire, block_newfriends, hide_online, hide_inroom, vip, vip_expire, birth, talent_status, mysterybox_key_colour, last_name_change, client_volume, nux_passed, seckey, voted, vandeweek, home_txt, donateur, stemmen, waarschuwing)
VALUES('#countUsers.recordcount+1#', '#form.username#', 'Donny', '#password#', 'GRANDCMS-', 1', '0', '500000', '500000', '#dateAdd("s", 1351894331, createDateTime(1970, 1, 1, 0, 0, 0))#', '20', '1', 'hr-165-45.hd-208-2.ch-250-64.lg-285-82.sh-290-64', 'M', 'Nieuw op GrandHotel!', '#form.mail#', '#dateAdd("s", 1351894331, createDateTime(1970, 1, 1, 0, 0, 0))#', '#dateAdd("s", 1351894331, createDateTime(1970, 1, 1, 0, 0, 0))#', '0', '#CGI.REMOTE_ADDR#', '#CGI.REMOTE_ADDR#', '0', '0', '0', '0', '#dateAdd("s", 1351894331, createDateTime(1970, 1, 1, 0, 0, 0))#', '0', '#dateAdd("s", 1351894331, createDateTime(1970, 1, 1, 0, 0, 0))#', '0', '0', '0', '0', '#dateAdd("s", 1351894331, createDateTime(1970, 1, 1, 0, 0, 0))#', '24-12-1995', '0', '0', '#dateAdd("s", 1351894331, createDateTime(1970, 1, 1, 0, 0, 0))#', '100', '0', '0', '1', '0', 'geenhometxt', '0', '0', '0');
</cfquery>
我对列进行了统计,它是相同的,所以这不是问题所在。任何人都知道我做错了什么?
抱歉我的英语不好。我来自荷兰!
答案 0 :(得分:2)
更改1'
,缺少某些内容!