<?php $db_connection = pg_connect("host=localhost dbname=DBNAME user=USERNAME password=PASSWORD"); ?>
<?php $result = pg_query($db_connection, "SELECT lastname FROM employees"); ?>