Hey all
Just started using yii and was reading through http://www.yiiframew...de/database.dao but I wasnt too sure if I need to escape my sql statements. If so how do I get around the issue of needing a link identifier when I sue mysql_real_escape?
Page 1 of 1
do i need to escape sql queries?
#2
Posted 20 July 2010 - 02:23 PM
try to avoid using own sql-statements. what about using CActiveRecords?
you don't need escaping them i think. am i right other guys?
you don't need escaping them i think. am i right other guys?
#4
Posted 21 July 2010 - 02:01 AM
AR and DAO auto escape all bound parameters for you (or more precisely PDO does that). So just make sure you always use parameter binding for any data coming from the outside.
Share this topic:
Page 1 of 1

Help













