Hi
I'm trying to access an image from a binary blob row in mySQL, but keep getting the error "Resource id #4"
The code I'm using:
<?php
@require("scripts/connect.php");
$iid = $_REQUEST[iid];
$Query = mysql_query("Select image from image where image_id = $iid");
header("Content-type: image/jpeg");
$result = mysql_fetch_array($Query);
$image = $result["image"];
echo $image;
?>
Thanks for any help.
I'm trying to access an image from a binary blob row in mySQL, but keep getting the error "Resource id #4"
The code I'm using:
<?php
@require("scripts/connect.php");
$iid = $_REQUEST[iid];
$Query = mysql_query("Select image from image where image_id = $iid");
header("Content-type: image/jpeg");
$result = mysql_fetch_array($Query);
$image = $result["image"];
echo $image;
?>
Thanks for any help.