Using pg_connect() with wamp server and postgresql
- by northlandiguana
Help! I am trying to connect to a Postgres database and can't get the server to connect. When I execute this php script:
$conn = pg_connect("dbname=wikimap user=postgres password=postgis host=localhost port=54321";
if (!$conn) {
echo "Not connected : " . pg_error();
exit;
}
I get this error:
<b>Fatal error</b>: Call to…