Hi!
Mittels Select kann man zw 4 Typen unterscheiden
Kerze
Spiegel
Bild
alle
PHP-Code:
<td><select name="typ">
<option value="Kerze" <?php if($typ=='Kerze') echo"selected"; ?>>Kerze
<option value="Spiegel" <?php if($typ=='Spiegel') echo"selected"; ?>>Spiegel
<option value="Bild" <?php if($typ=='Bild') echo"selected"; ?>>Bild
<option value="not null" <?php if($typ=='not null') echo"selected"; ?>>alle
</select></td>
Kerze, Spiegel oder Bild zu übergeben ist ja nicht schwer. Nur wann ich alle Typen anzeigen lassen will, wird nichts ausgeben
PHP-Code:
$SQLString = "SELECT * FROM shop WHERE Typ = '$typ'";
Was passt da nicht ?
Mfg
Frankster