Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /www/virtual/vending/php/common_lib.php on line 31 Connection Failed Warning: mysql_select_db() expects parameter 2 to be resource, null given in /www/virtual/vending/php/common_lib.php on line 38 DB Selection Failed Warning: mysql_real_escape_string(): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /www/virtual/vending/php/sanitizeArray.php on line 15 Warning: mysql_real_escape_string(): A link to the server could not be established in /www/virtual/vending/php/sanitizeArray.php on line 15 Warning: mysql_query() expects parameter 2 to be resource, null given in /www/virtual/vending/php/sqlwrapper.php on line 84 Warning: mysql_error() expects parameter 1 to be resource, null given in /www/virtual/vending/php/sqlwrapper.php on line 84 FAILED QUERY: SELECT MAX(id) FROM ccsubmission