
Moj skrypcik
<?php function where ($fraza,$tabele){ for($i=1;$i<count($wynik);$i++){ for($n=0;$n<count($tabele);$n++){ $where .= $tabele[$n]."LIKE '%".$word."%' OR "; } } } }else{ for($i=0;$i<count($fraza);$i++){ for($n=0;$n<count($tabele);$n++){ $where .= $tabele[$n]." LIKE '%".$fraza[$i]."%' OR "; } } }else{ for($n=0;$n<count($tabele);$n++){ $where .= $tabele[$n]." LIKE '%".$fraza."%' OR "; } } } return $where; } $tabela[]='www'; $tabela[]='opis'; $tabela[]='keywords'; $tabela[]='tresc'; $sql="SELECT * FROM szukarka WHERE ".where($str,$tabela)." ORDER by id DESC"; ?>
A przy okazji czy mozna zrobic jakies uszeregowanie wedlog tego ile bylo trafnych warunków
