MySQL在PHP中未返回错误


MySQL not returning error in PHP

在我的数据库类中得到了这一行

$return = mysql_fetch_array($data) or 
          $this->dberror("Error fetching data<br/>" . mysql_error());

但该网站发布的所有信息都是:获取数据时出错

试试这个:echo("错误:".mysql_Error($con));

将$con替换为您的连接变量。