i currently have this
<select name="category[]"> <?php $tbl_name3 = "categories"; $go="SELECT * FROM $tbl_name3 ORDER BY category ASC"; $result2=mysql_query($go); while($rows3=mysql_fetch_array($result2)){ echo " <option value=\"".$rows3['category']."\">".$rows3['category']."</option> "; } ?> </select>
this is fine, but i want groups in th select box to like p2l have,
so how can i print out the group, and for ever group, get the catergory inside the db and print it out under the group, then move on to the next group and do the same?
cats and groups all stored in db
Edited by curthard89, 14 April 2007 - 10:45 AM.