How to connect to postgre database using php in xampp?
@manish-r2Hoep
•
Oct 22, 2024
Oct 22, 2024
1.2K
I am facing problem in connecting to postgre database in xampp
when try to execute the following script
It is showing me an unexpected error ie undefined function pg_connect()
Here is the script
<?php
$conexion = pg_connect("host=localhost port=5432 password=*** user=postgres dbname=***") or die('Can't connect!!!: ' . pg_last_error());
?>
when try to execute the following script
It is showing me an unexpected error ie undefined function pg_connect()
Here is the script
<?php
$conexion = pg_connect("host=localhost port=5432 password=*** user=postgres dbname=***") or die('Can't connect!!!: ' . pg_last_error());
?>