Guten Tag,
habe ein Such Script erstellt, funktioniert auch gut, aber wie veränder ich so dass es nache mehrere Parameter sucht.
Z.B.: in diesem PLZ muss er suchen 4897 und gleich zeitig nach Hoffman Schule.
Die Daten sind in DB plz liegt in "PLZ" spalte und Hoffmanschule liegt in spalte "schule"
Hier ist Script :
Erste php:
Code:
<?php
echo "<form action=\"modules.php\" mehtod=\"POST\" style=\"margin-top: 0; margin-bottom: 0\">"
."<input type=\"hidden\" name=\"name\" value=\"schule\">"
."<input type=\"hidden\" name=\"file\" value=\"schule_suche\">"
."<input type=\"text\" name=\"gesucht\" size=\"25\" maxlength=\"50\"> "
."<input type=\"submit\" value=\""._NASEARCH."\">"
."</form>";
?>
zweite php:
Code:
$result = $db->sql_query("select cid,catid,title,schule,plz,place,bland,start,end,mobil,hp,mail,fax,bildneu,description,tel2 from schule where ( title LIKE '%$gesucht%' or schule LIKE '%$gesucht%' or plz LIKE '$gesucht%' or place LIKE '%$gesucht%' or description LIKE '%$gesucht%') limit $startpos,$rows_per_side");
$result1 = $db->sql_query("select cid,catid,title,schule,plz,place,bland,start,end,mobil,hp,mail,fax,bildneu,description,tel2 from schule where ( title LIKE '%$gesucht%' or schule LIKE '%$gesucht%' or plz LIKE '$gesucht%' or place LIKE '%$gesucht%' or description LIKE '%$gesucht%') ");
$count = $db->sql_numrows($result1);
Vielen Dank im Voraus