武汉后补街小区周边配套怎么样 (武汉后补街小学)
武汉休闲
08-17
阅读:2
评论:0
![](/gg/hf11.gif)
请输入要查询的小区地址:
查询结果:
0) { // 输出查询结果 $row = mysqli_fetch_assoc($result); echo "{$row['address']}
"; echo ""; echo ""; // 交通配套 $query = "SELECT `name` FROM `traffic` WHERE `community_id` = {$row['id']} AND `distance` <= 1000"; $result = mysqli_query($conn, $query); $num_traffic = mysqli_num_rows($result); echo ""; // 教育配套 $query = "SELECT `name` FROM `education` WHERE `community_id` = {$row['id']} AND `distance` <= 2000"; $result = mysqli_query($conn, $query); $num_education = mysqli_num_rows($result); echo ""; // 医疗配套 $query = "SELECT `name` FROM `medical` WHERE `community_id` = {$row['id']} AND `distance` <= 2000"; $result = mysqli_query($conn, $query); $num_medical = mysqli_num_rows($result); echo ""; // 商业配套 $query = "SELECT `name` FROM `commercial` WHERE `community_id` = {$row['id']} AND `distance` <= 2000"; $result = mysqli_query($conn, $query); $num_commercial = mysqli_num_rows($result); echo ""; echo "配套类型 | 数量 | 配套名称 |
---|---|---|
交通配套 | {$num_traffic} |
";
while ($row = mysqli_fetch_assoc($result)) {
echo $row['name'] . "
"; } echo " |
教育配套 | {$num_education} |
";
while ($row = mysqli_fetch_assoc($result)) {
echo $row['name'] . "
"; } echo " |
医疗配套 | {$num_medical} |
";
while ($row = mysqli_fetch_assoc($result)) {
echo $row['name'] . "
"; } echo " |
商业配套 | {$num_commercial} |
";
while ($row = mysqli_fetch_assoc($result)) {
echo $row['name'] . "
"; } echo " |
未找到符合条件的小区。
"; } } ?>![](/gg/hf11.gif)
版权声明
本文仅代表作者观点,不代表武汉桑拿立场。
本文系作者授权发表,未经许可,不得转载。