i'm trying to connect to a postgres DB but i always get this error:
Fatal error: Call to undefined function pg_connect() in C:\xampp\htdocs\dos.php on line 14
this is the code:
line 13. // conect to BD
line 14. $dbconn = pg_connect("host=localhost dbname=temporal user=postgres password=postgres") or die('No se pudo conectar a la BD: ' . pg_last_error());
for what i've read i should get a "1" when run this line: - echo extension_loaded('pgsql'); -, but i get nothing printed
i also printed the phpinfo(); but i get no infotmaiton about pgsql or postgres
so idk what's wrong, can i update xampps's php version? or what can i do??
i'm using xampp 2.5.8, postgresql 1.10.3 and dreamweaver 8