How to store and retrieve pictures using PHP?

Posted by user1276898 on Stack Overflow See other posts from Stack Overflow or by user1276898
Published on 2012-03-20T04:28:09Z Indexed on 2012/03/20 5:29 UTC
Read the original article Hit count: 148

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about php

Related posts about storage