:::

1-3 /ajax.php

<?php
include "../../mainfile.php";

$county=$_POST['county'];

$sql = "select city from `" . $xoopsDB->prefix("phone_book") . "` where county='{$county}' group by city order by zip";
$result = $xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'], 3, mysql_error());
while (list($city) = $xoopsDB->fetchRow($result)) {
    echo "<option vlaue='{$city}'>{$city}</option>";
}

 


:::

搜尋

QR Code 區塊

https%3A%2F%2Fwww.tad0616.net%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbsn%3D39%26tbdsn%3D1214

書籍目錄

展開 | 闔起

線上使用者

144人線上 (37人在瀏覽線上書籍)

會員: 0

訪客: 144

更多…