No database selected 是什么错误信息的错误意思可能是前面你将数据库关闭了! 检查前面的mysql_close() 转载于:https://www.cnblogs.com/qesystem/archive/2010/06/01/1748926.html