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

后端 未结 5 1292
春和景丽
春和景丽 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:15

    Technically, you can too put image data in an img tag, using data URIs.

    
    

    There are some special circumstances where this could even be useful, although in most cases you're better off serving the image through a separate script like daiscog suggests.

提交回复
热议问题