query("select distinct bez, str, plz, ort, plz_postfach, postfach, bundesland, staat, mail from stan_dienststellen where bez like '%".$letters."%' OR plz LIKE '".$letters."%' OR ort LIKE '%".$letters."%' ORDER BY name") or die(mysql_error()); #$row = $res->fetch_array(); #setcookie("str","$row[str]"); while($inf = $res->fetch_array()){ echo $inf["bez"]."~".$inf["str"]."~".$inf["plz"]."~".$inf["ort"]."~".$inf["plz_postfach"]."~".$inf["postfach"]."~".$inf["bundesland"]."~".$inf["staat"]."~".$inf["mail"]."|"; } } ?>