Page 1 of 1

function pq_connect

PostPosted: 10. July 2005 23:13
by mirkesss
i was trying to connect to my postgresql server, but i don't known where is problem.why this function doesn't exist(pg_connect)?

Have I a bad copy of xampp installation?Or XAMPP doesn't include it?


Fatal error: Call to undefined function pg_connect() in C:\apachefriends\xampp\htdocs\mirado\page\index.php on line 49
i tried too function_exists but same problem

thanks for any solution

mirkes

PostPosted: 11. July 2005 00:24
by Maller
pg_connect() is used to make a connection to a postgreSQL database, xampp comes with MySQL, so you will need to use mysql_pconnect()

PostPosted: 11. July 2005 10:47
by Wiedmann
Fatal error: Call to undefined function pg_connect() in C:\apachefriends\xampp\htdocs\mirado\page\index.php on line 49
i tried too function_exists but same problem

You must enable the PostgreSQL extension in php.ini:
extension=php_pgsql.dll