pg.ddx.io pgsql-php@postgresql.org mailing list archive
help / color / mirror / Atom feedPEAR and PG
2+ messages / 2 participants
[nested] [flat]
* PEAR and PG
@ 2001-04-20 16:48 Roberto Mello <rmello@cc.usu.edu>
2001-04-20 20:22 ` Re: PEAR and PG Brent R. Matzelle <bmatzelle@yahoo.com>
0 siblings, 1 reply; 2+ messages in thread
From: Roberto Mello @ 2001-04-20 16:48 UTC (permalink / raw)
To: pgsql-php
Hi there,
Is anyone here using PEAR with PG? I am having trouble finding decent
documentation about it.
I have phpdoc.de/pear but the docs there are sketchy at best.
For example:
private object a &query( $query )
Send a query to PostgreSQL and return the results as a DB_result
object.
private int numRows( $result )
Get the number of rows in a result set
But if I do (I am a PHP newbie, so bear with me please, and this is
just testing code):
$sth = $dbh->query("select user_id from users where email='xxxxxx'");
if($dbh->numrows($sth) > 0) {
$row = $sth->fetchrow(DB_FETCHMODE_ASSOC);
print "more than 0 rows. Row is ". $row[0];
} else {
print "no rows for you";
}
Then it tells me $sth is not a PostgreSQL result set. If it isn't, how
do I get it?
Thanks,
-Roberto
--
+----| http://fslc.usu.edu USU Free Software & GNU/Linux Club |------+
Roberto Mello - Computer Science, USU - http://www.brasileiro.net
http://www.sdl.usu.edu - Space Dynamics Lab, Developer
(D)inner not ready: (A)bort (R)etry (P)izza
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: PEAR and PG
2001-04-20 16:48 PEAR and PG Roberto Mello <rmello@cc.usu.edu>
@ 2001-04-20 20:22 ` Brent R. Matzelle <bmatzelle@yahoo.com>
0 siblings, 0 replies; 2+ messages in thread
From: Brent R. Matzelle @ 2001-04-20 20:22 UTC (permalink / raw)
To: pgsql-php
--- Roberto Mello wrote:> Hi there,> > Is anyone here using PEAR with PG? I am having trouble> finding decent> documentation about it.Have you seen this one? It seems rather well done.http://vulcanonet.com/soft/?pack=pear_tutBrent
---------------------------------
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-04-20 20:22 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-04-20 16:48 PEAR and PG Roberto Mello <rmello@cc.usu.edu>
2001-04-20 20:22 ` Brent R. Matzelle <bmatzelle@yahoo.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox