fix
This commit is contained in:
parent
29496004dc
commit
f695c98fc3
14
index.php
14
index.php
@ -18,8 +18,8 @@
|
||||
else {
|
||||
header("Location: start.php");
|
||||
}
|
||||
|
||||
require("config.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;
|
||||
|
Loading…
Reference in New Issue
Block a user