I want to display all Image
s from the database but my code here displays only one. How can I get them all and display in my webpage. I know I need to put a loop but I wonder where it should be.
Here's my php code so far (without loop)
include('../include/connect.php');
$query=ibase_query("SELECT FILEDATA FROM ARCHIVE WHERE 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);
}