
06-24-2011, 07:10 PM
|
 |
|
|
Join Date: Sep 2005
Location: Montreal, QC
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by MonkYZ
Well, i'm starting to get tons of Database errors:
PHP Code:
Invalid SQL: INSERT INTO gxboxlive SET userid = '9834', gold = '0', gamertag = 'I don't have an Xbox Console.', avatar = 'http://image.xboxlive.com//global/t.FFFE07D1/tile/0/20000', score = '--', reputation = '<div class="Star Empty"></div><div class="Star Empty"></div><div class="Star Empty"></div><div class="Star Empty"></div><div class="Star Empty"></div>', zone = '', lastplayed = '', updated = '1308933422' , strikes = '0', error = '1', firstseen = '1308933422';
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 't have an Xbox Console.', avatar = 'http://image.xboxlive.com//global/t.FFFE' at line 5 Error Number : 1064
Did they change anything again?
|
It's beacuse the user has used ' in his/her gamertag. The gamertag is: I don't have an Xbox Console.
Use regex in first post to don't let users type an invalid string in your gamertag field.
Quote:
Regular Expression: ^([A-Za-z0-9 ]+)?$ (regex not required)
|
|