"; //connect to server $conn = pg_connect("host=localhost port=5432 dbname=backbay user=postgres password=4databas"); if (!$conn) { echo "An error occured.\n"; exit; } //get stuff from the table $result = pg_exec ($conn, "select manifestation_id from subject_manifestation where (subject_id='$s')"); $num = pg_numrows($result); $a=0; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; ?>