Hi all,
Help please.
I am useing a dynamic list in a script.
<select name="category" class="bodytext" onChange="submit()">
<option value="" <?php if (!(strcmp("", "category"))) {echo "SELECTED";} ?>>Select
a category</option>
<option value="" <?php if (!(strcmp("", "category"))) {echo "SELECTED";} ?>>All</option> >
<?php
do {
?>
<option value="<?php echo $row_Cat_filter['category_id']?>"<?php if (!(strcmp($row_Cat_filter['category_id'], "category"))) {echo "SELECTED";} ?>><?php echo $row_Cat_filter['category']?></option>
<?php
} while ($row_Cat_filter = mysql_fetch_assoc($Cat_filter));
$rows = mysql_num_rows($Cat_filter);
if($rows > 0) {
mysql_data_seek($Cat_filter, 0);
$row_Cat_filter = mysql_fetch_assoc($Cat_filter);
}
?>
</select>
The list works fine.
My question is how do I include an option to show all records, ie without any filtering.
Help please.
Kind regards, keep safe and well.
Dereck