I am trying to display images in dropdown. I have code like this
<?php
$sql2 = "SELECT * FROM item_category";
$query2 = mysql_query($sql2);
?>
<select name="category" onChange="showItems(this);">
<option value="">Select Product Category</option>
<?php while ($rs2 = mysql_fetch_array($query2)) { ?>
<option value="<?php echo $rs2["item_id"]; ?>">
<img src="../upload/category/<?php echo $rs2["image"]?>">
</option>
<?php } ?>
</select>
But it displays blank. Can you please advise me how to do it?