如何使用PHP回显存储在数据库中的所有图像? [关闭]

I'd like to create a page that displays all images stored in the "store" table of my database called "festival", and for them to be presented in a HTMl table. The images in my database are stored as BLOB.

At first you have to query all images. Then you can display an image saved as blob like this:

echo '<img src="data:image/jpeg;base64,' . base64_encode( $blobimage ) . '" />';

Where $blobimage is the variable that contains your image from database