I want to escape string in magento, but when I am using mysql_real_escape_string
, i am getting warning.
Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.soc.....'
I couldn't find any magento's core mysql escape function. So, what should I do?