Warning: mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 0 in E:\wangzhan\zhongan\include\db.php on line 8

Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in E:\wangzhan\zhongan\include\db.php on line 9

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in E:\wangzhan\zhongan\include\db.php on line 10

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Lost connection to MySQL server at 'reading initial communication packet', system error: 0 in E:\wangzhan\zhongan\include\db.php on line 79

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in E:\wangzhan\zhongan\include\db.php on line 79

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in E:\wangzhan\zhongan\include\db.php on line 160
Sql 语句执行不成功: SELECT * FROM ptypes WHERE 1 and id='' LIMIT 1