first commit

This commit is contained in:
schwaral
2022-11-25 07:07:16 +01:00
commit c086b964da
3188 changed files with 1063828 additions and 0 deletions

20
admin/livesearch2.php Normal file
View File

@ -0,0 +1,20 @@
<?php
include("kurs/datenbankanbindung.php");
$db = dbconnect();
#header("Content-Type: text/html;charset=utf-8");
if(isset($_GET['getStadt']) && isset($_GET['letters'])){
$letters = $_GET['letters'];
$res = $db->query("select distinct bez, str, plz, ort, plz_postfach, postfach, bundesland, staat
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"]."|";
}
}
?>