{Solved}:How can i search a full field in 1 table...
Posted: Fri Apr 27, 2012 6:42 am
How can i search a full field in 1 table...?
for example...
i want to search in all categories
<option value="????????">All categories</option>?
i search every category like this and success
<option value="????????">All categories</option>?
now how can i search all the Id's ? in 1 option (All categories)
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)