Re: Getting the table columns of a result in DB_DataObject
| From: | Justin Patrin | Date: | Fri, 22 Apr 2005 16:40:19 +0000 |
| Subject: | Re: Getting the table columns of a result in DB_DataObject | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-18921@lists.php.net to get a copy of this message | ||
On 4/21/05, pear@electroteque.org <pear@electroteque.org> wrote:
> Ok sorry i must be annoying everyone with my questions, but I am giving
> aswell as recieving :) Ok I have an issue I would like to create the
> columns of the DataGrid which will be generating the Excel spreadsheet.
> Currently I am hardcoding the Excelspreadsheet writer. So I would like to
> create a standard class which extends DG, obtain the dynamic columns ,
> maybe add extra columns or rows after the resultset ie for totals etc. Is
> the only way by obtaining the databaseconnection and using its methods ?
>
What are you asking?
If you want to get the columns from a DO you can use $do->table().
--
Justin Patrin