Hello ive made a loop for abc chars
But the problem now is, that the # dont select all the titles with special chars/numbers.
<?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>";
?>
My Query:
$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";