im trying display pigs which are saved in mysql with php. But all i get is text..
this is my code:
the first is a include (show´.inc.php)
<?
include ("inc/connection_data.inc.php");//includes wurden in das inc Verzeichniss gepackt
$db = mysql_connect();
@mysql_select_db("News", $db) or die("Can't select database.");
$get_image = "select binary_junk, filetype from abprojekte where ID = 1";
$get_image_result = @($get_image) or die("Couldn't get image.");
$binary_junk = @mysql_result($get_image_result,0,"binary_junk");
$filetype = @mysql_result
Header( "Content-type: $type");
echo "$binary_junk";
?>
and this is the one which supposed to display the whole thing:
<HEAD>
<TITLE>My Image</TITLE>
</HEAD>
<BODY>
<H1>Look at this:</H1>
<IMG SRC="show.php">
</BODY>
what do i do wrong
do i need the phplib to be installt ????