Warning: pg_query() expects parameter 1 to be resource, boolean given in /var/www/html/views/index.inc.php on line 8

Warning: pg_fetch_array() expects parameter 1 to be resource, null given in /var/www/html/views/index.inc.php on line 10