1、问题说明 使用 die(mysql_error()); 语句时,报错: Fatal error: Uncaught Error: Call to undefined function mysql_error() 2、解决方案 将语句mysql_error() 改为用 mysqli_error($con)