www.CB1300.de Standortkarte

Karte | Liste | Suchen | Eintragen | zurück zum Forum

query("SELECT plz FROM ".TABLE_GEODB." WHERE plz='".mysql_real_escape_string($_POST['plz'])."'"); $row = mysql_fetch_assoc($res); if($row['plz']) { $Ins['name']=htmlentities($_POST['name']); $Ins['plz']=$_POST['plz']; foreach((array)$_POST['data'] AS $k => $v) $_POST['data'][$k] = htmlentities($v); $Ins['data']=serialize($_POST['data']); $db->InsertRow(TABLE_USER, $Ins); echo "Danke!"; echo mysql_error(); } else $ePLZ=true; } else $eMissing=true; if($eMissing || $ePLZ) { include("eintragen.html"); } } else if(isset($_GET['l'])) // Tabelle ausgeben { require_once('list.php'); $l=getList($_GET['l'], $_GET['s']); echo ''; echo ''; foreach(array_keys($DataFields) AS $f) echo ""; echo ''; foreach($l AS $e) { echo ''; foreach(array_keys($DataFields) AS $f) echo ''; echo ''; } echo '
Name PLZ Ort$f
'.$e['name'].''.$e['plz'].''.$e['ort'].''.$e['data'][$f].'
'; } else // Karte zeichnen { require_once('map.php'); echo '
'; $p=getPoints((int)$_GET['m']); drawPoints($p); echo '
'; } //print_r($Point); ?>

Chaosquake LandMarkSystem (c) by Dominic Szablewski - lms@chaosquake.de - chaosquake.de