I have a line like this:
$line= Yii::app()->db->createCommand()->select('line_no')->from('tblvehicleimage') ->where('serial_no=:serial_no', array(':serial_no'=>$model->serial_no)) ->queryScalar();
how to put all the $line data in an array? Is there any way i can use 'mysql_fetch_array'?