My host, (Dreamhost) is planning a manditory upgrade to PHP 5.6 soon. Thus far we have been on 5.3. Today I manually set the server to PHP 5.6 for testing, and got the following error at the top of the site:
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/cmargo5/shop.pacherbs.com/system/database/mysql.php on line 6
Can anyone clue me in on what this is related to, and what I might do to remedy the error?
My system/database/mysql.php file line #6 reads:
if (!$this->link = mysql_connect($hostname, $username, $password)) {
My skills stop here, as I don't really know what I'm looking at.
Thanks in advance for any assistance!

Opencart 1.5.6.4 (an upgrade done by qphoria)
Theme: Journal http://themeforest.net/item/journal-adv ... me/4260361
EDIT, ADDITIONAL ERROR LOGS:
2016-01-25 11:52:55 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/cmargo5/shop.pacherbs.com/system/database/mysql.php:6) in /home/cmargo5/shop.pacherbs.com/index.php on line 179
2016-01-25 11:52:55 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/cmargo5/shop.pacherbs.com/system/database/mysql.php:6) in /home/cmargo5/shop.pacherbs.com/system/library/currency.php on line 45
2016-01-25 11:55:10 - PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/cmargo5/shop.pacherbs.com/system/database/mysql.php:6) in /home/cmargo5/shop.pacherbs.com/vqmod/vqcache/vq2-system_library_session.php on line 12
2016-01-25 11:55:12 - PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/cmargo5/shop.pacherbs.com/system/database/mysql.php:6) in /home/cmargo5/shop.pacherbs.com/vqmod/vqcache/vq2-system_library_session.php on line 12
2016-01-25 11:55:13 - PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/cmargo5/shop.pacherbs.com/system/database/mysql.php:6) in /home/cmargo5/shop.pacherbs.com/vqmod/vqcache/vq2-system_library_session.php on line 12
2016-01-25 11:55:14 - PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/cmargo5/shop.pacherbs.com/system/database/mysql.php:6) in /home/cmargo5/shop.pacherbs.com/vqmod/vqcache/vq2-system_library_session.php on line 12
2016-01-25 11:55:14 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/cmargo5/shop.pacherbs.com/system/database/mysql.php:6) in /home/cmargo5/shop.pacherbs.com/system/library/captcha.php on line 40
2016-01-25 11:55:15 - PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/cmargo5/shop.pacherbs.com/system/database/mysql.php:6) in /home/cmargo5/shop.pacherbs.com/vqmod/vqcache/vq2-system_library_session.php on line 12
2016-01-25 11:55:15 - PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/cmargo5/shop.pacherbs.com/system/database/mysql.php:6) in /home/cmargo5/shop.pacherbs.com/vqmod/vqcache/vq2-system_library_session.php on line 12
2016-01-25 11:55:36 - PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/cmargo5/shop.pacherbs.com/system/database/mysql.php:6) in /home/cmargo5/shop.pacherbs.com/vqmod/vqcache/vq2-system_library_session.php on line 12
2016-01-25 11:55:36 - PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/cmargo5/shop.pacherbs.com/system/database/mysql.php:6) in /home/cmargo5/shop.pacherbs.com/vqmod/vqcache/vq2-system_library_session.php on line 12
2016-01-25 11:55:36 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/cmargo5/shop.pacherbs.com/system/database/mysql.php:6) in /home/cmargo5/shop.pacherbs.com/index.php on line 179
2016-01-25 11:55:36 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/cmargo5/shop.pacherbs.com/system/database/mysql.php:6) in /home/cmargo5/shop.pacherbs.com/system/library/currency.php on line 45
2016-01-25 11:57:12 - PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/cmargo5/shop.pacherbs.com/system/database/mysql.php:6) in /home/cmargo5/shop.pacherbs.com/vqmod/vqcache/vq2-system_library_session.php on line 12
2016-01-25 11:57:12 - PHP Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/cmargo5/shop.pacherbs.com/system/database/mysql.php:6) in /home/cmargo5/shop.pacherbs.com/vqmod/vqcache/vq2-system_library_session.php on line 12
2016-01-25 11:57:12 - PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/cmargo5/shop.pacherbs.com/system/database/mysql.php:6) in /home/cmargo5/shop.pacherbs.com/vqmod/vqcache/vq2-system_library_session.php on line 12
2016-01-25 11:57:12 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/cmargo5/shop.pacherbs.com/system/database/mysql.php:6) in /home/cmargo5/shop.pacherbs.com/index.php on line 179
2016-01-25 11:57:12 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/cmargo5/shop.pacherbs.com/system/database/mysql.php:6) in /home/cmargo5/shop.pacherbs.com/system/library/currency.php on line 45
2016-01-25 11:57:14 - PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/cmargo5/shop.pacherbs.com/system/database/mysql.php:6) in /home/cmargo5/shop.pacherbs.com/vqmod/vqcache/vq2-system_library_session.php on line 12
2016-01-25 11:57:14 - PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/cmargo5/shop.pacherbs.com/system/database/mysql.php:6) in /home/cmargo5/shop.pacherbs.com/vqmod/vqcache/vq2-system_library_session.php on line 12
2016-01-25 11:57:15 - PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/cmargo5/shop.pacherbs.com/system/database/mysql.php:6) in /home/cmargo5/shop.pacherbs.com/vqmod/vqcache/vq2-system_library_session.php on line 12
2016-01-25 11:57:15 - PHP Warning: Cannot modify header information - headers already sent by (output started at /home/cmargo5/shop.pacherbs.com/system/database/mysql.php:6) in /home/cmargo5/shop.pacherbs.com/system/library/captcha.php on line 40
2016-01-25 11:57:15 - PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/cmargo5/shop.pacherbs.com/system/database/mysql.php:6) in /home/cmargo5/shop.pacherbs.com/vqmod/vqcache/vq2-system_library_session.php on line 12
2016-01-25 11:57:16 - PHP Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/cmargo5/shop.pacherbs.com/system/database/mysql.php:6) in /home/cmargo5/shop.pacherbs.com/vqmod/vqcache/vq2-system_library_session.php on line 12