retrieve image from mysql database in blob type

I am trying to display image on second file which is not being displayed plz help anyone

//first php file

$reAll = “select * from collect”;
$sql = mysql_query($reAll);
if($sql){
while($row = mysql_fetch_array($sql)){
$data1[] = $row[‘jewelphoto’]; //image in database
$data2[] = $row[‘price’];
}
}else{
echo “error!”;
}

//second php file

">
$<?php echo $data2[0]; ?>

Any errors?

Still not answering questions.

What makes you think there is anything stored in $data1[3]? And why don’t you use the array that is already there?

Sponsor our Newsletter | Privacy Policy | Terms of Service