when trying to use the mysql_real_escape_string() function (see http://www.w3schools.com/php/func_mysql_real_escape_string.asp to see why), the following warning occurs:
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'web'@'localhost' (using password: NO) in /home/me/web/include/secondary/app_action.inc.php on line 337
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in /home/me/web/include/secondary/app_action.inc.php on line 337
First of all, the user is not 'web' trying to connect to the database, secondly, what is mysql_real_escape_string() doing connecting to the database, as 'web' or anyone else, and thirdly, why is this happening, does anyone know?
Thanx
Phil