当我制作一个角色时,我收到了有关游戏的警告,并且我经历了确认,错误:警告:mysql_num_rows()期望参数1是资源,在C中给出布尔值: xampp htdocs app/
Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\app\class.engine.php on line 102 Unknown column 'ipaddress_reg' in 'field list
我想知道是什么了吧,我访问了我的本地主机/ phpMyAdmin的,但没有工作
100-103线:
final public function num_rows($sql)
{
return $this->mysql['num_rows']($this->mysql['query']($sql, $this->connection));
}
这会提示您的查询中存在错误。 –
可能重复'$ this-> mysql'你可以尝试'返回$ this-> mysql ['num_rows'] ['query']($ sql,$ this-> connection);' –
或者如错误消息所示''字段列表'中的未知列'ipaddress_reg' –