Actually the problem is not with finding the line. Should I add the addslashes() function to the PM values?
I think the problem is here but since I don't know php, I can't fix it.
Code:
$DB_site->query("INSERT INTO user (userid,username,password,email,parentemail,coppauser,homepage,icq,aim,yahoo,biography,signature,adminemail,showemail,invisible,usertitle,joindate,canpost,cookieuser,daysprune,lastvisit,lastactivity,usergroupid,timezoneoffset,emailnotification,receivepm,emailonpm) VALUES (NULL,'".addslashes($username)."','".addslashes($password)."','".addslashes($email)."','".addslashes($parentemail)."',$coppauser,'".addslashes($homepage)."','".addslashes($icq)."','".addslashes($aim)."','".addslashes($yahoo)."','".addslashes($biography)."','".addslashes($signature)."',".addslashes($adminemail).",".addslashes($showemail).",".addslashes($invisible).",'".addslashes($usertitle)."',".time().",1,".addslashes($cookieuser).",".addslashes($prunedays).",".time().",".time().",".addslashes($newusergroupid).",".addslashes($timezoneoffset).",".addslashes($emailnotification)."),".addslashes($receivepm).",".addslashes($emailonpm)."");
When I register a new user, I get this db error:
Code:
Database error in vBulletin: Invalid SQL: INSERT INTO user (userid,username,password,email,parentemail,coppauser,homepage,icq,aim,yahoo,biography,signature,adminemail,showemail,invisible,usertitle,joindate,canpost,cookieuser,daysprune,lastvisit,lastactivity,usergroupid,timezoneoffset,emailnotification,receivepm,emailonpm) VALUES (NULL,'deneme','pff','dostluk2000@hotmail.com','',0,'http://','','','','','',1,1,0,'Newbie',978764903,1,1,-1,978764903,978764903,3,0,1),1,0
mysql error: You have an error in your SQL syntax near '1,0' at line 1
Thanks
|