Warning: mysql_real_escape_string()?

Posted by Tom on Stack Overflow See other posts from Stack Overflow or by Tom
Published on 2010-03-21T21:37:42Z Indexed on 2010/03/21 21:41 UTC
Read the original article Hit count: 431

Filed under:
|

Hi, I am getting the error; Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Why do I get this error? The mysql_real_escape_string() works on all of my pages apart from one? Is it something to do with MySQL being on a different server to the PHP server - if so, how do I fix it?

Thanks Tom

© Stack Overflow or respective owner

Related posts about mysql

Related posts about php