Thanks for the suggestions everyone, I have this now, but still no image 
showing up

It is stored as a blob in the database.

on the output page I am calling it like this:

    <img src="image.php?filename=<?php echo $row['ePhoto']; ?>">

Then on the image.php page I have this:


header("Content-type: img/jpeg");
$filename = $_GET['filename'];

$sql = "SELECT ePhoto from eagleProjects WHERE $filename= ePhoto";
$row = mysql_fetch_assoc ($result);


<?php echo $row['ePhoto']; ?>

This page isn't working and if I try to browse this page it wants to open it 
with an editor, it won't view in the browser.

What am I doing wrong? Is it the code or the data?


PHP General Mailing List (
To unsubscribe, visit:

Reply via email to