Re: Pear:db
| From: | PQ Administrator | Date: | Wed, 24 Oct 2001 20:19:50 +0000 |
| Subject: | Re: Pear:db | ||
| Groups: | php.gtk.general | ||
| Request: | Send a blank email to php-gtk-general+get-436@lists.php.net to get a copy of this message | ||
This should be a question for PHP-DB discussions but....
Heres a simple query using PEAR DB
$db = DB::connect( "mysql://$dbuser:$dbpass@$dbhost/$dbname" );
$sql = 'SELECT * FROM <table name>';
$Result = $db->query($sql);
while ($Row = $Result->fetchRow()) {
echo $Row[2] . '<br>';
}
$db->disconnect();
Good Luck!
-----Original message-----
From: "PabloDallOglio" <pablo@univates.br>
To: php-gtk-general@lists.php.net
Date: 10/24/2001(Wed)11:16
Subject: [PHP-GTK] Pear:db
Hello all
Im rewriting agata for use Pear::DB
Anyone knows how do I get the table names of database using Pear ?
--
Pablo Dall'Oglio
Linux User n. 223253
--
PHP-GTK General Mailing List (http://gtk.php.net/)
To unsubscribe, e-mail: php-gtk-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-gtk-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net
Troy McComas
Networks/System Admin. & Developer
PhysicianQuest.com
admin@physicianquest.com
Office - (818)550-8777 or (626)282-0288
Cell- (626)255-9833
<!-- -->
Powered by PhysicianQuest.com