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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -