See, that's the problem. I havn't used ANY. REALLY!
here's some code that pulls an image from mysql and outputs it.
It tends to work, but sometimes it dosn't...
<?
//This script pulls banners from the database and outputs them
//add includes
include ("config.php");
include ("connect.php");
$query = "
SELECT bannerImg, bannerImgType
FROM BannerAds
WHERE UIN = '$UIN'
";
$return = mysql_query($query, $db);
$data = mysql_result($return, 0, 0);
$bannerImgType = mysql_result($return, 0, 1);
header ("Content-type: $bannerImgType");
echo $data;
?>