所以我的php函数是
$query = $this->db->query("SELECT locked FROM tournament_bracket_matches WHERE locked=1 AND tournament_id=".$this->db->escape(intval($tournament_id)));
return $query->num_rows();
它创建的查询是
SELECT locked FROM tournament_bracket_matches WHERE locked=1 AND tournament_id=7
并返回15个结果,但在phpmyadmin中,相同的查询返回16个结果???
Showing rows 0 - 15 ( 16 total, Query took 0.0003 sec)
我不明白为什么要这样做
编辑:实际结果应为16个结果,phpmyadmin列出16行。