PHP Script Error

Level : 8

Message : Undefined index: HTTP_REFERER

File : /home/thestory/public_html/portal/upload.php

Line : 7

Notice: Array to string conversion in /home/thestory/public_html/portal/system/ on line 769

Context : Array

Ending Script

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/thestory/public_html/portal/system/ on line 75

Warning: mysql_real_escape_string() expects parameter 1 to be string, array given in /home/thestory/public_html/portal/system/classes/database.class.php on line 138