user1118700
user1118700

Reputation: 67

PostgreSQL connector with PHP on windows platform

I am making an editor. I need to connect my php code to postgresql. This uses command like this

$dbconnect = pg_connect();

but my compiler is unable to detect pg_connect;

So i need connector to connect this. I am using Windows Platform

Please Help.

Upvotes: 0

Views: 297

Answers (2)

jschildgen
jschildgen

Reputation: 4189

Look at PDO http://php.net/manual/de/ref.pdo-pgsql.php

Here is an example how to connect to PostgreSQL: http://www.phpro.org/tutorials/Introduction-to-PHP-PDO.html#4.1

Upvotes: 0

k102
k102

Reputation: 8079

check for extension=php_pgsql.dll string in php.ini to be uncommented

Upvotes: 1

Related Questions