php - Fetch image path from mysql and show image on web page -
<select id="availablefruits" name="availablefruits" multiple size=7 style="width:auto;float:left;" > <?php $fruitlist=$this->fruitlist; foreach ($fruitlist $key => $val) { //printf('<option value="%s"><table><tr><td>%s</td><td>%s</td></tr></table></option>',$val,$val,$val); printf('<option value="%s">%s</option>', $val, $val); } ?> </select>
my images in path "public/image/" . want select fruit drop down list,and per selection want show fruit image on web page.
Comments
Post a Comment