Reputation: 67
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
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
Reputation: 8079
check for extension=php_pgsql.dll
string in php.ini
to be uncommented
Upvotes: 1