Hi, I have managed to upload images to a table in mysql, however, i am having problems with displaying the image, all i get is a box with a red cross in it and i'm not sure what i'm doing wrong.
Here is the code i am using to view the image;
<?php
require_once ('connect.php');
$make = $_GET['make'];
if(!isset($make) ¦¦ empty($make)){
die("There is no image available");
}
else{
$quert = mysql_query("select image from photo where make=$make");
$row = mysql_fetch_array($query);
$content = $row['image'];
header('Content-type: image/jpg');
echo $content;
}
?>
The previous file is selecting distinct(make) from 2 tables and returning values. The $row[make] is then sent through to the above code to display the jpeg.
Can anyone help?