From: | Dmitri Touretsky <dmitri(at)listsoft(dot)ru> |
---|---|
To: | pgsql-novice(at)postgresql(dot)org |
Subject: | PHP + PostgreSQL |
Date: | 2002-02-28 01:32:19 |
Message-ID: | 15919456205.20020228043219@listsoft.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
Good time of the day!
Perhaps this list is not an exact place to ask, but I haven't found an
answer in the PHP-specific lists and boards... So I'll give a try...
It's easy to work with Postgres from PHP scripts. You can access all
you need - tuples, fields, etc. BUT I was unable to find a way to get
a PostgreSQL reply on queries like "BEGIN" or (more important)
"COMMIT".
E.g. when I execute a query like
$tmp = pg_Exec($connection, "SELECT * ...")
I can get a number of returned tuples with pg_numrows($tmp), etc.
But when I execute
$tmp = pg_Exec($connection, "BEGIN")
I was unable to get anything out of $tmp. And I'm pretty sure
that PostgreSQL's reply "BEGIN" should be somwhere there...
There are a number of such queries and it would be useful to be able
to read output in order to know if things are going good or bad... Any
ideas?
Best regards,
Dmitri ( mailto:dmitri(at)listsoft(dot)ru )
New SOFT daily: http://www.listsoft.ru/
Articles, tips: http://www.diskovod.ru/
---
A cat is a four footed allergen.
From | Date | Subject | |
---|---|---|---|
Next Message | Josh Berkus | 2002-02-28 01:57:25 | Re: PHP + PostgreSQL |
Previous Message | Josh Berkus | 2002-02-28 00:52:25 | Re: v7.2-rpms for SuSE7.3 |