This topic is locked

combo box search in the list page help

4/27/2009 7:24:15 AM
PHPRunner General questions
S
s.kahya author

Hi everybody

//create dropdown box

$str = "";

$str.= "<select onchange=\"window.location.href=this.options[this.selectedIndex].value;\"><option value=\"\">Please select</option>";
//select values from database

global $conn;

$strSQL = "select DISTINCT sorunu from tadilat";

$rs = db_query($strSQL,$conn);

while ($data = db_fetch_array($rs))

$str.="<option value=\"tadilat_list.php?a=search&value=1&SearchFor=".$data["sorunu"]."&SearchOption=Contains&SearchField=sorunu\">".$data["sorunu"]."</option>";
$str.="</select>";

echo $str;


How to search the above code change the combo box?
such as the advanced search page
thanks

J
Jane 4/27/2009

Hi,
unfortunately simple search won't work with two or more values from combobox.