Hallo Harry,
ich glaub ich hab mich etwas blöd ausgedrückt, sorry.
Beispiel:
----------------------------
$worte[0] = "bla";
$worte[1]="";
$worte[2] = "hoi";
function where($a){
global $worte;
for($n=0;$n<count($worte);$n++){
if($sql_out){
$sql_out.=$a;
}
$sql_out.= "tab_schlagworte.Schlagwort LIKE '%".$worte[$n]."%'";
}
return $sql_out;
}
echo where("---");
Wie schmeiße ich $worte[1] vorher raus??
Falk
----------------------------