Forums
This topic is locked
Displaying an image... problems
Posted 29 Aug 2001 21:02:44
1
has voted
29 Aug 2001 21:02:44 crazy larry posted:
Can someone help me figure out why this does not work?I have this php file called displayimage.php:
<html>
<head>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<?php
echo "<IMG SRC=\"GetImage.php?paramID=1\">";
?>
</body>
</html>
I have this file called GetImage.php:
--(which works fine if you run it)--
<?php
require("./../adodb/adodb.inc.php"
require("./../Connections/prague_ODBC.php"
$Image_ID = "1";
if (isset($paramID))
{$Image_ID = $paramID;}
$Selected_Image=$prague_ODBC->Execute("SELECT Image FROM image WHERE Image_ID = " . ($Image_ID) . "" or DIE($prague_ODBC->ErrorMsg());
header("Content-type: image/gif"
echo $Selected_Image->Fields("Image"
?>
When I run the displayimage.php, I get the broken link image.
Any ideas?
I really would appreciate it!
Thanks