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

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

    You need to retrieve and disect the information into what you need.

    while($row = mysql_fetch_array($result)) {
     echo "img src='",$row['filename'],"' width='175' height='200' />";
    }
    

提交回复
热议问题