Is this correct? I get an error when i go to the website. I am using apache, postgre, php
$con = pg_connect("host=".$pg." dbname=".$db." user=".$un." password=".$ps."", PGSQL_CONNECT_FORCE_NEW) or die("Error:".pg_last_error($con));
$con = pg_connect("host=".$pg." dbname=".$db." user=".$un." password=".$ps."", PGSQL_CONNECT_FORCE_NEW) or die("Error:".pg_last_error($con));