如何在通过Ajax获取下拉过滤器值时获取动态计数(id)?
不知道如何实现这个目标:
我希望获得动态城市计数行,同时通过Ajax获取城市下拉列表并将其显示在页面顶部?
参见附图:countRows
$sql="SELECT COUNT(city_id) FROM schools";
$query=mysqli_query($link, $sql);
$number_filter_row = mysqli_fetch_row(mysqli_query($link, $sql));
$number_filter_rows = $number_filter_row[0];
$textLine="Best Play Schools ($number_filter_rows)";