RE: [PEAR] Pear DB Class

From: Date: Tue, 28 Jan 2003 20:25:27 +0000
Subject: RE: [PEAR] Pear DB Class
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-3502@lists.php.net to get a copy of this message
> -----Original Message----- > From: andre.bras [mailto:andre.bras@delphi.com] > Sent: Tuesday, January 28, 2003 10:24 AM > To: pear-general@lists.php.net > Subject: [PEAR] Pear DB Class > > > Hello, > > i'm using the pear DB class, and i have a question: > how can i know the column names of one table?? Have you taken a look at the manual on pear.php.net? Anyways going by memory you can get the column names either using tableinfo() or you can also use DB_FETCHMODE_ASSOC which will make the keys in a result array that you get with fetchRow(), getRow(), getCol(), getAll or getAssoc() the names of the columns Regards, Lukas

« previous php.pear.general (#3502) next »