Connecting to mysql
Ok, lets start. I have plugin, which is base for API and it connects to mysql database. Sometimes it shows errors:
PHP Code:
PHP Code:
PHP Code:
Whats wrong, what to do, need help :) |
Re: Connecting to mysql
Code:
You need to increase the size of name array to 56. Also, your escaping doesn't make sense. You're just basically changing ' to '. If you want to escape single quotes in MySQL, use either \' or ''. |
Re: Connecting to mysql
Thx for help :)
And, actually the code there is replace_all(name, 56, "'", "&# 39") but it's the same. I just did the API, that was the original code from somewhere :D |
Re: Connecting to mysql
Da labi, Guski, tu vel ar pawnu nodarbojies? Oo
|
Re: Connecting to mysql
Quote:
|
Re: Connecting to mysql
Change the size to 56 here:
Code:
|
Re: Connecting to mysql
Trolololol, I read it wrong :D Omg how stupid, thx again.
|
| All times are GMT -4. The time now is 10:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.