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

Fatal error: Uncaught exception 'Exception' with message 'Blad laczenia sie z baza danych; ' in /mysql.php:31 Stack trace: #0 /skrypty/newsy.php(1) : eval()'d code(145): mysql->__construct('SELECT * FROM t...') #1 /kom.php(7): pobierz_news(4, 16128) #2 {main} thrown in /mysql.php on line 31