我需要计算 MySql 查询的结果行。在这里,我将TableGateway
课程扩展到我的课程,这是我的代码。
public function get_num_of_rows(){
$sql = 'SELECT count(q_no) FROM questions';
//code ????????????????
$result = $this->select();
return $result;
}
那么我如何执行SELECT count(q_no) FROM questions
?