What can I do to correct this?

I am using 7.5.8

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Smarty has a deprecated constructor in /home4/maritim5/public_html/forums/libs/smarty/Smarty.class.php on line 64

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; bbcode has a deprecated constructor in /home4/maritim5/public_html/forums/libs/bbcode.inc.php on line 5

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; mailer has a deprecated constructor in /home4/maritim5/public_html/forums/libs/mailer.inc.php on line 7

Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home4/maritim5/public_html/forums/libs/mysql.inc.php:22 Stack trace: #0 /home4/maritim5/public_html/forums/libs/ubbthreads.inc.php(88): sql->connect() #1 /home4/maritim5/public_html/forums/ubbthreads.php(41): require_once('/home4/maritim5...') #2 {main} thrown in /home4/maritim5/public_html/forums/libs/mysql.inc.php on line 22