Re: DB_DataObject, table desc and toArray()
| From: | Justin Patrin | Date: | Mon, 11 Dec 2006 15:44:26 +0000 |
| Subject: | Re: DB_DataObject, table desc and toArray() | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26074@lists.php.net to get a copy of this message | ||
On 12/9/06, Brian Clark <brianj+nevdull@unwell.org> wrote:
Hi there, I've been using this to get a list of the table columns: $db = new DB_DataObject; $db->tableName('mental_patient'); $table = $db->toArray();$do = DB_DataObject::factory('mental_patient'); $columns = $do->table(); -- Justin Patrin