I am trying to display images from my database using the select and option tags but images dont display.
<div class="form-group col-md-6">
<label for="inputtype">Game Type</label>
<select class="custom-select mr-md-2" name="image_file">
<?php foreach($games as $image): ?>
<option selected></option>
<option value="<?php echo $image->region ?>"><img src="<?php echo $image->image_path(); ?>" width="40" height="40" style="border-radius: 100%; "/></option>
<?php endforeach; ?>
</select>
</div>
loop is correct and image path function is also correct as i have used in other options. All i need is for the images to display so i can select for another usage.