for example...
i want to search in all categories
<option value="????????">All categories</option>?
i search every category like this and success
Code: Select all
<?php
mysql_query("SET NAMES 'utf8'");
$result2 = mysql_query("SELECT Id as value,category_name as title FROM categories");
while($row = mysql_fetch_assoc($result2)){
extract($row);
?>
<option value="<?=$value?>"><?=$title?></option>
<?php
}
?>now how can i search all the Id's ? in 1 option (All categories)