php - How to display/ retrieve all images from the database -


i want display images database code here displays one. how can them , display in webpage. know need put loop wonder should be.

here's php code far (without loop)

include('../include/connect.php'); $query=ibase_query("select filedata archive file_type='image'"); $data=ibase_fetch_object($query); if($data){   header("content-type:image/jpeg || image/gif || image/png || image/pjpeg");   ibase_blob_echo($data->filedata); } 

each time use ibase_fetch_object gets next object

so uset in while loop (php example) :

 header("content-type:image/jpeg || image/gif || image/png || image/pjpeg");     while ($data=ibase_fetch_object($query){     ibase_blob_echo($data->filedata);  } 

edit : following this answer should have 2 separate files


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -