Warning: pg_connect(): Unable to connect to PostgreSQL server: FATAL: Peer authentication failed for user "mooadmin" in /var/www/onaslant/register/register_student.php on line 37

Warning: pg_query() expects parameter 1 to be resource, bool given in /var/www/onaslant/register/register_student.php on line 47

Warning: pg_last_error(): No PostgreSQL link opened yet in /var/www/onaslant/register/register_student.php on line 48
Invalid query:

SELECT distinct i.* FROM institution i, class as c WHERE i.active=1 and c.institution=i.id and c.active=1 ORDER BY i.name