Hi.
Zend_Db_Table_Abstract::fetchAll() * @return Zend_Db_Table_Rowset_Abstract
The row results per the Zend_Db_Adapter fetch mode. So, its
Zend_Db_Table_Rowset_Abstract
type you get, not an array.You can use Zend_Db_Table_Rowset_Abstract::toArray()
if you want an array, or iterate trough Zend_Db_Table_Rowset_Abstract with
an foreach and convert to excel.

Regards,
Saša Stamenković


On Tue, Jul 14, 2009 at 9:15 AM, jigen7 <i_love_ji...@yahoo.com> wrote:

>
> hi im wondering how will i create an excel files from the returned rows?
>
> //Code
> $table = new Model_Crescores();
> $select = $table->select();
> $select->order('cap_no');
> $array = $table->fetchAll($select);
>
>  // the results in $array will be converted to excel i tried this tutorial
> http://www.nerdydork.com/php-to-excel.html but i got an error that $array
> is
> not an array??can anyone help me??thanks??
> --
> View this message in context:
> http://www.nabble.com/Create-an-Excel-file-from-the-returned-table-rows-tp24474784p24474784.html
> Sent from the Zend Framework mailing list archive at Nabble.com.
>
>

Reply via email to