如何计算有限制的结果数量?显然我的代码不正确。有帮助吗?
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()");