How to store and retrieve pictures using PHP?
- by user1276898
I am building a webpage using PHP to search within my database. I am able to do a query and get the data to show on my page.
I also have a picture that is related to each record. Let's say something like a picture ID for each employee. I am wondering what is the best way to store and retrieve pictures in order to get it show using PHP.
Is there a way to store all the pictures in the subfolder like " image" and retrieve the pictures using PHP? I tried to search around on the internet, but I get confused.
Also, when I type something in the search box and click the button, is there a way to keep the input in the search box without erasing it?
Thank you very much.