Sql name problem...
Code:
Could someone post an explanation of what's wrong, and how to fix it, if possible? PS: I took these two lines from the played time plugin. |
Re: Sql name problem...
why do you need to remove those? They aren't escape chars untill they're called to be as such. Put the name in quotes. (Wrapped in ^")
Either way....replace it with an underscore or soemthing. For whatever reason string natives have troubles with EOS calls. (i.e. an empty string) |
Re: Sql name problem...
Liverwiz, in SQL symbol " ' " is reserved, and can't be used in a random place, because it separates column names for example.
|
Re: Sql name problem...
But I don't see anything wrong in the code, is there?
|
Re: Sql name problem...
Shouldn't you only be replacing ' \ ` symbols?
Code:
|
Re: Sql name problem...
Quote:
|
Re: Sql name problem...
In names, all you have to worry about are single quotes.
However, since your query wraps the name in double quotes, you don't have to escape it at all. You can't even have backslashes in your name anyway. |
Re: Sql name problem...
So what should I do?
|
Re: Sql name problem...
Quote:
|
Re: Sql name problem...
Just a quick question, can client_disconnect() detect if the user was alive before disconnecting?
Maybe the problem is because of this: Code:
|
| All times are GMT -4. The time now is 15:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.