fix
This commit is contained in:
parent
29496004dc
commit
f695c98fc3
12
index.php
12
index.php
@ -18,8 +18,8 @@
|
|||||||
else {
|
else {
|
||||||
header("Location: start.php");
|
header("Location: start.php");
|
||||||
}
|
}
|
||||||
|
|
||||||
require("config.php");
|
require("config.php");
|
||||||
|
if ($strDistict=="unkown") { header("Location: start.php");}
|
||||||
require_once("lib/functions.php");
|
require_once("lib/functions.php");
|
||||||
|
|
||||||
$ref=(isset($_GET['ref']) && ($_GET['ref']==1));
|
$ref=(isset($_GET['ref']) && ($_GET['ref']==1));
|
||||||
@ -28,16 +28,16 @@
|
|||||||
$strIntro .= nl2br2($strIntroText);
|
$strIntro .= nl2br2($strIntroText);
|
||||||
|
|
||||||
|
|
||||||
$strSQL="SELECT loc.*,f.filename
|
$result= $db->prepare("SELECT loc.*,f.filename
|
||||||
FROM location loc LEFT JOIN files f ON loc.id=f.loc_id
|
FROM location loc LEFT JOIN files f ON loc.id=f.loc_id
|
||||||
WHERE loc.district='$strDistrict'";
|
WHERE loc.district=:district");
|
||||||
|
$result->bindParam(":district",$strDistrict);
|
||||||
|
$result->execute();
|
||||||
/* Für die Auswertung nur bestimmte Kategorien anzeigen
|
/* Für die Auswertung nur bestimmte Kategorien anzeigen
|
||||||
$numDefect="(6,8,21)";
|
$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;
|
$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();
|
$arrMarker = array();
|
||||||
$arrDescription = array();
|
$arrDescription = array();
|
||||||
$id=0;
|
$id=0;
|
||||||
|
Loading…
Reference in New Issue
Block a user