include '../../snippets/connect.php';
$orgid = $_GET['orgid'];
if(!isset($orgid) || empty($orgid)){
die("Please select your image!");
}else{
$query = mysql_query("SELECT orghomepic FROM org_home_pic WHERE orgid='".$orgid."'");
$row = mysql_fetch_array($query);
$content = $row['orghomepic'];
if (empty($content)) {
**$image = imagecreatefromjpeg('http://www.ineed.org.uk/dev/media/images/nohomepic.jpg');
header('Content-type: image/jpg');
imagejpeg($image);**
} else {
header('Content-type: image/jpg');
echo $content;
}
}
So this was working previously and upto maybe 1 week ago it was not working, was wondering if anyone had any suggestions at all as to why it isn't/stopped working... or what i could fundamentally change to get the required result...
Which is if the image in teh database exists use it(this bit works fine)... if it doesnt exist display default (the bold bit - Doesnt Work)