I have some code that uploads images to a directory img/news
What I'd like is a way when adding a news story to get a list of all the images in a scroll box and when clicked in the box at the right the image shows up. I need java for this, but would like the scroll box to be populated by ALL the files in the directory, which I think I need PHP to do.
Then when an image is selected insert the name in the scrollbox (picture1.jpg) into a field in my table called news_img
Thanks!