PHP - How can i display all the images on a selection list -


I want to count all the images in a specific folder (I did already), and I Selection List

How can I customize it and put all the images in a selection list?

The user must select an image, and this image should be saved in a table.

  & lt; Html & gt; & Lt; Body & gt; & Lt ;? Php $ files = glob ("imagens /*.*"); ($ I = 1; $ i & lt; Count ($ files); $ i ++) {$ image = $ files [$ i]; Print $ image. "& Lt; br / & gt;"; Echo '& lt; Img height = "30" width = "30" src = "'. $ Image." "Alt =" random image "/> & gt; & lt; br /> gt; & Lt; 
"

The easiest way to use a selection box for your images is to protect the image, it is in front of many other issues (DB connections, forms, etc.) Try the problem, if you have problems, then you come back with what you have done.

   

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -