This commit is contained in:
Walter Hupfeld 2024-02-22 12:01:59 +01:00
parent 29496004dc
commit f695c98fc3

View File

@ -18,8 +18,8 @@
else {
header("Location: start.php");
}
require("config.php");
if ($strDistict=="unkown") { header("Location: start.php");}
require_once("lib/functions.php");
$ref=(isset($_GET['ref']) && ($_GET['ref']==1));
@ -28,16 +28,16 @@
$strIntro .= nl2br2($strIntroText);
$strSQL="SELECT loc.*,f.filename
FROM location loc LEFT JOIN files f ON loc.id=f.loc_id
WHERE loc.district='$strDistrict'";
$result= $db->prepare("SELECT loc.*,f.filename
FROM location loc LEFT JOIN files f ON loc.id=f.loc_id
WHERE loc.district=:district");
$result->bindParam(":district",$strDistrict);
$result->execute();
/* Für die Auswertung nur bestimmte Kategorien anzeigen
$numDefect="(6,8,21)";
$strSQL="SELECT loc.*,f.filename FROM location loc LEFT JOIN files f ON loc.id=f.loc_id WHERE defect in ".$numDefect;
*/
$result = $db->query($strSQL);
$arrMarker = array();
$arrDescription = array();
$id=0;