<? require ("img2mysql.class.php"); // Img2Mysql($mysqluser, $mysqlpassword, $mysqlhost, $mysqldatabase) $mysql = New Img2Mysql('root','','localhost','img2mysql'); $content=$mysql->getImageByName("banner2"); header("Content-type: image/jpg"); echo $content; ?>