<?php

include("config.inc.php");

session_start();


$connection = mysql_connect($config['dbServer'],$config['dbUser'],$config['dbPass']) or die("Could not connect to DB");
mysql_select_db($HTTP_SESSION_VARS['dbName'],$connection) or die("Could not find DB");


$queryComp = " Select Company_Logo1 as CompanyLogo From Setup "; 
$resultComp = mysql_query($queryComp,$connection) or die(mysql_error());

while($rowComp = mysql_fetch_array($resultComp,MYSQL_ASSOC)){
	$CompanyLogo = $rowComp['CompanyLogo'];
} 

header('Content-type: image/jpeg');
header('Content-type: image/bmp');

echo $CompanyLogo;




?> 