Location: PHPKode > projects > WorkOrder TS > workorder-ts/setup_files/MySQLErr.php
<?PHP function _ODBDA( $_jJiQt,$_jJiOj=Null ) { switch ($_jJiQt) { case 0:break;case 1007:die('Database ERROR: Database already exists. <a href="javascript: popuphelpdbex()" style="text-decoration: none">Please click here for more details (popup).</a> <img src="'.ERROR_IMG.'" width="22" height="11" />'."\n");break;case 1044:die('Database ERROR: Access denied '.$_jJiOj.'. <img src="'.ERROR_IMG.'" width="22" height="11" />'."\n");break;case 1045:die('Database ERROR: Access denied!.'."\n".' Possible reason: Incorrect Username or Password or User not allowed to login from current host. <a href="javascript: popuphelperrdeny()" style="text-decoration: none">Click Here For More Information.</a> <img src="'.ERROR_IMG.'" width="22" height="11" />'."\n");break;case 1046:die('Database ERROR: No Database specified. <img src="'.ERROR_IMG.'" width="22" height="11" />'."\n");break;case 1049:die('Database ERROR: Database does not exist. <img src="'.ERROR_IMG.'" width="22" height="11" />'."\n");break;case 1050:die('Database ERROR: Table already exists. <img src="'.ERROR_IMG.'" width="22" height="11" />'."\n");break;case 1102:die('Database ERROR: Invalid Database Name, please correct and try again. <img src="'.ERROR_IMG.'" width="22" height="11" />'."\n");break;case 1142:die('Database ERROR: Specified user does not have sufficient rights. <img src="'.ERROR_IMG.'" width="22" height="11" />'."\n");break;case 1064:die('Database ERROR: Syntax Error. '.mysql_error().' <img src="'.ERROR_IMG.'" width="22" height="11" />'."\n");break;case 1130:die('Database ERROR: Host is not allowed to connect to this MySQL server '.$_jJiQt.' <img src="'.ERROR_IMG.'" width="22" height="11" />'."\n");break;case 1251:die('Database ERROR: Client does not support authentication protocol requested by server; consider upgrading MySQL client software'.$_jJiQt.' <img src="'.ERROR_IMG.'" width="22" height="11" />'."\n");break;case 2013:die('Database ERROR: Lost connection to MySQL server during query, check your firewall settings or IP address. '.$_jJiQt.' <img src="'.ERROR_IMG.'" width="22" height="11" />'."\n");break;case 2003:die('Database ERROR: Can\'t connect to MySQL server,check your firewall settings or IP address.'.$_jJiQt.' <img src="'.ERROR_IMG.'" width="22" height="11" />'."\n");     break;    case 2002:     die('Database ERROR:Unable to connect to MySQL server,check your firewall settings or IP address.'.$_jJiQt.' <img src="'.ERROR_IMG.'" width="22" height="11" />'."\n");     break;    default:     die('Database ERROR:Unknown Error! MySQL Server returned error number:'.$_jJiQt.' <img src="'.ERROR_IMG.'" width="22" height="11" />'."\n");   }  }   ?>
Return current item: WorkOrder TS