:::

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%2Ftad0616.cp27.secserverpros.com%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbdsn%3D1214%26tbsn%3D39

書籍目錄

展開 | 闔起

線上使用者

320人線上 (139人在瀏覽線上書籍)

會員: 0

訪客: 320

更多…