I'm still having problems with PHP/MySQL Warning messages, even when using mysql_real_escape_string().
The offending string is:
[25:64] And the true servants of the Gracious God are those who walk on the earth humbly and when the ignorant address them, they avoid them gracefully by saying, 'Peace!'
If I use this line on my WAMP server at home, I get now errors or warnings:
$quranVerse_1 = mysql_real_escape_string($_POST['quranVerse_1']);
However, when I use the same line on the hosted website, I get this series of errors/warnings:
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Can't connect to MySQL server on 'localhost' (10061) in E:\domains\t\tarbiyyat.org\user\htdocs\php_newsletter\news_insert_record.php on line 7 Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in E:\domains\t\tarbiyyat.org\user\htdocs\php_newsletter\news_insert_record.php on line 7
It's becoming so frustrating that we are contemplating going to a new hosting company.
So any help at all might prevent us going to all that trouble.
So the only thing I can see being the problem is the hosting companies PHP or MySQL setup must have something turned on or off?
Does anyone have a clue about this and how it can be fixed?