I want to ensure prevention from SQL injection. In the past I've used mysql_real_escape_string, but when using it with Yii, I receive the following error:
I've found quoteValue() as an alternative. Is this the recommended way of parsing the SQL?
Thanks in advance.
Can't connect to local MySQL server through socket
I've found quoteValue() as an alternative. Is this the recommended way of parsing the SQL?
Thanks in advance.