Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Mysql_Real_Escape_String() Alternative?

$
0
0
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:

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.

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>