Hi
I need to move the pointer of this $result=$command->query();
in the old app its written as mysql_data_seek($result, $count);
How to do it in Yii?
Thanks
Hi
I need to move the pointer of this $result=$command->query();
in the old app its written as mysql_data_seek($result, $count);
How to do it in Yii?
Thanks
I guess thats not possible. Yii uses PDOStatement internally which happens to have no seek() method.
CDbCommand::query() returns an object of type CDbDataReader - this is a one-time forward only stream of rows.
Check the docs for different ways of getting the data from it - http://www.yiiframew…1/CDbDataReader