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 -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -