Articles Posted in the " Yii Select " Category

  • Yii2 Select Query : Model

    This tutorial will help you to learn find, all, one, where, orderby, count, asarray, indexby, limit, offset, like, in, between, groupby, having, addparams, scopes and findbysql in yii 2.0 framework function





  • CDbDataReader

    CDbDataReader

    CDbDataReader reads the rows from a result. CDbDataReader Query <?php $cdbdatareader = Yii::app()->db->createCommand() ->select('username, password') ->from('usermaster') ->query(); ?> columnCount & rowCount <?php echo $cdbdatareader->rowCount; echo $cdbdatareader->columnCount; ?> CDbDataReader Using read(), next() <?php $record=$cdbdatareader->read(); echo […]