Hello,
I have a website running 4.3.0 with MySQL 3.23.52. This website allows the administrator to upload images to the database then they get displayed from another page.
This was working up until a couple of days ago. I don't know what went wrong. I upgraded PHP to 4.3.0 but I think I did this before this happen. The Page is not displaying any errors, its just not showing the picture.
Below is the code I use to fetch the data and display it.
<?
include_once("main.class.php");
$m = new MAIN;
if($id)
{
$query = "select bin_data_front, filetype_front from wa_pictures where id=$id";
$result = $m->query($query);
$data = @mysql_result($result,0,"bin_data_front");
$type = @mysql_result($result,0,"filetype_front");
Header( "Content-type: text/html");
print $data;
}
?>
This was working. So I don't know what would have gone wrong. If you would like to see the site, its here: http://www.wrapartbymichele.com and go into Samples and look around. None of the images get shown.
Thanks for all the help ( if anyone can answer this ).
Bill Van Pelt.