Re: PHP Pear DB
| From: | Mike D'Ambrogia | Date: | Thu, 31 Jul 2008 14:45:05 +0000 |
| Subject: | Re: PHP Pear DB | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-29114@lists.php.net to get a copy of this message | ||
<?php
echo "<h2>brute force</h2>";
$objPage = DB_DataObject::factory('page');
foreach($objPage as $key => $value) {
if ((substr($key,0,1) != "_") and (substr($key,0,1) != "N")) {
print $key . "<BR>";} } echo "<h2>PEAR table()</h2>"; echo "<pre>"; print_r($objPage->table()); echo "</pre>"; ?> On 7/31/2008 2:47 AM, liran tal wrote:
Hey, Is there a method available in the class to list the fields/columns of a given database table? I'm not seeing any unique class for that in the documentation. Regards, Liran.