您好香港專業教育學院取得了ABC字符搜索功能
但現在的問題是一個循環,將#不要選擇全部用特殊字符/數字的標題。
<?PHP
$page_nav = array();
$r = 35;
$rr = chr($r);
for($i = 97; $i <= 122; ++$i)
{
$l = chr($i);
$page_nav[] = ($l == mysql_real_escape_string($_GET['order'])) ? "<li class='aktiv'>".$l."</li>" : "<li><a href='index.php?s=all-movies&order=".$l."&site=1'>".$l."</a></li>";
}
echo implode(' ', $page_nav);
echo ($rr == mysql_real_escape_string($_GET['order'])) ? "<li class='aktiv'>".$rr."</li>" : "<li><a href='index.php?s=all-movies&order=".$rr."&site=1'>".$rr."</a></li>";
?>
我的查詢:
$sqlCmdSearch="SELECT id,name,title,countryyear,type,hoster,cover,picturequality,language,rating,date FROM topmovies.movies WHERE status='online' AND type='movie' AND title LIKE '".mysql_real_escape_string($_GET['order'])."%' GROUP BY title ORDER BY title";
它,因爲瀏覽器後「#對待一切'作爲URL散列參數,請嘗試'urlencode'。 – bystwn22