PDA

View Full Version : ERROR - Mod can edit, user can't (NOT A PERMISSION PROBLEM)


GSX-Racing
04-05-2006, 02:42 AM
Hey there tech support...

I am getting this error... for ONE user only. The user can edit their post fine... but when a moderator trys this error comes up.

Can anyone help?


Database error in vBulletin 3.5.4:

Invalid SQL:
SELECT userid FROM vb3_user WHERE username = 'ThreeB's';

MySQL 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 's'' at line 1
Error Number : 1064
Date : Tuesday, April 4th 2006 @ 06:23:37 PM
Script : http://www.domain.com/vb/editpost.phtml
Referrer : http://www.domain.com/vb/showthread.phtml?t=18677
IP Address : ??.???.???.??
Username : DoC
Classname : vb_database


Thanks in advance.

Xenon
04-05-2006, 09:20 AM
seems like you have a bug in one of your additions

the username uses an ' which is not escaped