postgras php code example
Example 1: php postgresql
<?php
$db_connection = pg_connect("host=localhost dbname=DBNAME user=USERNAME password=PASSWORD");
?>
Example 2: php postgresql
<?php
$result = pg_query($db_connection, "SELECT lastname FROM employees");
?>