Help !! How does PHP display multiple images in the database as shown in the following figure. I have saved the image to the database .. Now how can I display these images to the page. ------ Solution ------------------ PASS id, one at a time ------ solution -------------------- yes, if your php version is 5.3 or later, be careful with notice-level errors $ row [filetype] for help !! How does PHP display multiple images in the database?
As the question. I have saved the image to the database .. Now how can I display these images to the page.
------ Solution --------------------
Transfer id, one at a time
------ Solution --------------------
By the way, if your php version is 5.3 or later, you must be careful with the notice-level error $ row ['filetype'].
When reading images, no output is allowed, including php errors.
------ Solution --------------------
If the window environment is used, the image data is damaged.
Fopen ($ _ FILES ['photo'] ['tmp _ name'], "r ")
To write
Fopen ($ _ FILES ['photo'] ['tmp _ name'], "rb ")
Writing is safe.
$ Data = addslashes (file_get_contents ($ _ FILES ['photo'] ['tmp _ name']);