How to display blob image stored in mysql database

I have uploaded some images to MySQL using PHP. I can also display 1 image everytime i modify the id in the HTML img tag. But now I'm trying to display all images stored in MySql database and the problem is when i use a 'While Loop' it only shows the text columns and not the images stored as BLOB data in MySQL...

I have a database called: my_db I have a table called: blob And i have 3 columns in my table: id, name & image

here is the code for the index.php:









    

Chủ Đề