initial commit
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
session_start();
|
||||
header("Content-Type: text/html; charset=utf-8");
|
||||
include("../verbind.php");
|
||||
$eingabe=$_POST["eingabe"];
|
||||
|
||||
if (!get_magic_quotes_gpc())
|
||||
$eingabe = addslashes($eingabe);
|
||||
|
||||
$auswahl = explode(" ", $eingabe);
|
||||
|
||||
$auswahl1 = $auswahl[0];
|
||||
$auswahl2 = $auswahl[1];
|
||||
|
||||
if (!get_magic_quotes_gpc())
|
||||
|
||||
/*
|
||||
{
|
||||
$eintrag = "INSERT INTO jump
|
||||
(tabelle, tabellenid)
|
||||
VALUES ('$auswahl1', '$auswahl2' )";
|
||||
|
||||
|
||||
|
||||
//$eintragen = mysql_query($eintrag);
|
||||
mysql_query($eintrag) OR die("<pre>\n".$sql."</pre>\n".mysql_error());
|
||||
}
|
||||
|
||||
*/
|
||||
|
||||
|
||||
$query1 = "SELECT a.ort, a.plz, b.titel, b.text1, b.text2, b.strasse, b.platz, b.plz, b.link, b.linkpfad, b.art1, b.plz2, b.aindex, b.aktiv
|
||||
FROM geo a
|
||||
INNER JOIN
|
||||
freizeitneu b ON (b.plz = a.plz)
|
||||
WHERE
|
||||
b.aktiv LIKE '%1%' AND
|
||||
(b.titel LIKE '%$suchtext1%' OR b.text1 LIKE '%$suchtext1%' OR b.text2 LIKE '%$suchtext1%' OR a.ort LIKE '%$suchtext1%') AND
|
||||
(b.titel LIKE '%$suchtext2%' OR b.text1 LIKE '%$suchtext2%' OR b.text2 LIKE '%$suchtext2%' OR a.ort LIKE '%$suchtext2%')
|
||||
ORDER BY titel Limit $rest ";
|
||||
|
||||
$frage1 = mysql_query($query1);
|
||||
while ($antwort=mysql_fetch_array($frage1)){
|
||||
|
||||
|
||||
|
||||
|
||||
$liste.= '<div class="suchtext"><a href="../../'.$ortschaft.'/Info-Freizeit/sehenswuerdigkeiten.php?sa='.$antwort["aindex"].' " >'.
|
||||
'Freizeit in '.$antwort["ort"].' - '.$antwort["titel"].'</a></div><br class="clear"/>';
|
||||
}
|
||||
|
||||
|
||||
echo "<br> ";
|
||||
echo " $liste ";
|
||||
echo "geht soweit";
|
||||
echo $eingabe;
|
||||
echo "<br>";
|
||||
?>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user