Thanks for the suggestion, Shuping. However, after configure
PHP_Source/ext/pgsql does not have a config.h file. The contents are:
I installed PgSQL 8.0.8 (can't find 8.0.3) minutes ago, then rebuilt the
pgsql extension.
the result is good, i have pg_prepare:)
So, would you please try
Hello,
The following code:
?php
// Connect to a database named mary
$dbconn = pg_connect(host=localhost port=5432 dbname=test user=test
password=test);
if(!$dbconn) {
echo Unable to connect to test database\n;
echo pg_last_errror($dbconn);
exit;
}
$result = pg_prepare($dbconn,
Steve Mathias wrote:
Hello,
The following code:
?php
// Connect to a database named mary
$dbconn = pg_connect(host=localhost port=5432 dbname=test user=test
password=test);
if(!$dbconn) {
echo Unable to connect to test database\n;
echo pg_last_errror($dbconn);
exit;
}
$result =
Steve Mathias wrote:
Chris == Chris [EMAIL PROTECTED] writes:
Chris Steve Mathias wrote:
Hello,
The following code:
?php // Connect to a database named mary $dbconn =
pg_connect(host=localhost port=5432 dbname=test user=test
password=test); if(!$dbconn) { echo Unable to connect to test
Apache: 2.2.3
PHP: 5.6.1 - 5.1.6
Postgres: 8.0.3
I think the version is ok.
You can check this file PHP_Source/ext/pgsql/config.h ( after configure
but before make ) to look up if HAVE_PQPREPARE is defined or undefined.
If it's not, modify it to be defined munually, then launch another