计算带限制的结果数

时间:2016-11-02 06:06:34

标签: php mysqli

如何计算有限制的结果数量?显然我的代码不正确。有帮助吗?

map = Map.first
lake_name = map.lake 
#this would return the lake that is tied to the first map object

答案:$result = mysqli_query ($conn, "select SQL_CALC_FOUND_ROWS * from $sql $limit"); $db_count = mysqli_query ("SELECT FOUND_ROWS()");

0 个答案:

没有答案