2017-06-19 2 views
-1

Jetzt rufe ich taman section aus einer Tabelle, ich möchte nur bestimmte Taman Abschnitt anrufen oder rufen Sie alle taman section in der Tabelle, wie könnte ich das tun? Bellow sind mein Code:
post.php:Wählen Sie `specific name` oder` all` aus einer Tabelle

<select name="taman"> 
<option value="taman1">Taman1</option> 
<option value="tamanA">TamanA</option> 
<option value="*">ALL</option> 
</select> 

select.php

$taman = $_POST["taman"]; //this taman are post from post.php,I have tried put value * to this $taman, but still cannot. 

$qry="SELECT cusinfo.* FROM cusinfo 
         WHERE cusinfo.TAMAN_SECTION = '$taman' 
         "; 
+0

setzen Sie ein 'name =" "Attribut auf dem'