您必须获取一条记录,它将包含Count()的结果
$result = $db->query("SELECt COUNT(*) FROM `table`");$row = $result->fetch_row();echo '#: ', $row[0];
您必须获取一条记录,它将包含Count()的结果
$result = $db->query("SELECt COUNT(*) FROM `table`");$row = $result->fetch_row();echo '#: ', $row[0];