Re: How to put the $col attribute with the columns of a table in DB_Table?
| From: | Mark Wiesemann | Date: | Thu, 24 Nov 2005 09:53:36 +0000 |
| Subject: | Re: How to put the $col attribute with the columns of a table in DB_Table? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-22071@lists.php.net to get a copy of this message | ||
Antonio Luis Batista wrote:
> Hi all i'm working with DB_Table and I really don't know when the array
> of cols of my DB_Table object is set.
> I call my constructor with a valid DB object and table name, and the
> DB_Table object is correctly created but the $col array is empty??
> I have looked all the methods of DB_Table and I don't know how it can
> take the array directly from the table.
Hmmm, this seems to be a misunderstanding. DB_Table won't create $col
itself, this is your task. DB_Table can then create a database table for
you and perform queries on it.
HTH,
Mark