How to retrieve images from MySQL database and display in an html tag

后端 未结 5 1296
春和景丽
春和景丽 2020-11-22 02:34

I created a MySQL database with a table using phpmyadmin. I created this table with a BLOB column to hold a jpeg file.

I have issues with regards to the php variabl

5条回答
  •  广开言路
    2020-11-22 03:36

    You can't. You need to create another php script to return the image data, e.g. getImage.php. Change catalog.php to:

    
    
    
    

    Then getImage.php is

    
    

提交回复
热议问题