Tuesday, 9 August 2011

MYSQL - mysql_real_escape_string error

Warning: mysql_real_escape_string() [function.mysql-real-escape- string]: Access denied for user 'SYSTEM'@'localhost' (using password: .......... 

If we have encountered the problem above, make sure we have made connection to the database before using the mysql_real_escape_string() function.