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

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -