Warning: mysql_error() expects parameter 1 to be resource, boolean given in /mysql.php on line 31

Fatal error: Uncaught exception 'Exception' with message 'Error connecting to database; ' in /mysql.php:31 Stack trace: #0 /scripts/newsy.php(1) : eval()'d code(145): mysql->__construct('SELECT * FROM t...') #1 /kom.php(7): pobierz_news(112, 13856) #2 {main} thrown in /mysql.php on line 31