Hallo, ich habe mir ein Suchformular erstellt, nun weiß ich nicht wie die DB abfrage dazu richtig lauten müsste! Könnt Ihr mir helfen?`
Hier der Code des Formulars:
Danke
Gruß Medico
Hier der Code des Formulars:
PHP:
<form method="POST" action="search.php">
<p align="center">&</p>
<div align="center">
<table border="0" id="table18">
<tr>
<td>
<p align="center"><b><font face="Verdana">Wählen Sie
Ihre gewünschte Kategorie:</font></b></p>
<p align="center"><b><font face="Verdana" size="1">&</font></b><select size="1" name="kategorie_suche">
<option value="">Alle</option>
<option>Kategorie1</option>
<option>Kategorie2</option>
<option>Kategorie3</option>
<option>Kategorie4</option>
<option>Kategorie5</option>
<option>Kategorie6</option>
</select></p></td>
</tr>
<tr>
<td>
<p align="center"><b>Suche einschränken mit</b></p>
<p align="center"><font size="1"><b>&</b></font><font face="Verdana"><font size="2">PLZ </font>
<input type="text" name="plz_suche" size="5"><font size="2"> Ort
</font><input type="text" name="ort_suche" size="20"></font></p>
</td>
</tr>
<tr>
<td><p align="center"><b><font face="Verdana" size="2">Gewünschte
Leistungen:</font><font face="Verdana" style="font-size: 5pt">
</font></b></p>
<div align="center">
<table border="0" id="table19">
<tr>
<td><font face="Verdana">
<input type="checkbox" name="leistung_1" value="1"></font></td>
<td><font face="Verdana">Leistung 1</font></td>
<td><font face="Verdana">
<input type="checkbox" name="leistung_2" value="1"></font></td>
<td><font face="Verdana">Leistung 2</font></td>
</tr>
<tr>
<td><font face="Verdana">
<input type="checkbox" name="leistung_3" value="1"></font></td>
<td><font face="Verdana">Leistung 3</font></td>
<td><font face="Verdana">
<input type="checkbox" name="leistung_4" value="1"></font></td>
<td><font face="Verdana">Leistung 4
</font></td>
</tr>
<tr>
<td><font face="Verdana">
<input type="checkbox" name="leistung_5" value="1"></font></td>
<td><font face="Verdana">Leistung 5</font></td>
<td><font face="Verdana">
<input type="checkbox" name="leistung_6" value="1"></font></td>
<td><font face="Verdana">Leistung 6
</font></td>
</tr>
<tr>
<td><font face="Verdana">
<input type="checkbox" name="lesitung_7" value="1"></font></td>
<td><font face="Verdana">Leistung 7</font></td>
<td><font face="Verdana">
<input type="checkbox" name="leistung_8" value="1"></font></td>
<td><font face="Verdana">Leistung 8</font></td>
</tr>
<tr>
<td><font face="Verdana">
<input type="checkbox" name="leistung_9" value="1"></font></td>
<td><font face="Verdana">Leistung 9</font></td>
<td><font face="Verdana">
<input type="checkbox" name="leistung_10" value="1"></font></td>
<td><font face="Verdana">Leistung 10</font></td>
</tr>
<tr>
<td><font face="Verdana">
<input type="checkbox" name="leistung_11" value="1"></font></td>
<td><font face="Verdana">Leistung 11</font></td>
<td><font face="Verdana">
<input type="checkbox" name="leistung_12" value="1"></font></td>
<td>
<p align="center"><font face="Verdana">
Leistung 12</font></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
<p align="center"><font face="Verdana">Stichwortsuche
<input type="text" name="wort_suche" size="20"></font></p>
<p align="center"><font face="Verdana">
<input type="submit" value="Absenden" name="B1"><input type="reset" value="Zurücksetzen" name="B2"></font></p>
</form>
Danke
Gruß Medico