you cant just mix html tags and image data and expect them to be onthe same page to get both html and images displayed.if you want image, use a <IMG> tag, whose SRC attribute maybe a phpfile, and this php file will output _only_ image data, i.e. echo $obj->photo;nothing more, except if you want to add a http header header('Content-type: image/jpeg'); Good luck! On 10/5/05, blackwater dev <blackwaterdev@xxxxxxxxx> wrote:> I am querying a MSSQL db where an jpg image is stored as a blog.>> I have this code:>> <html>> <head>> <meta http-equiv="Content-Type" content="image/jpg">> </head>> <body>> <?> //Do the query> include_once("../includes.list.php");> $ms_sql= new ms_db();> $my_sql=new Database();> $query="select photo from cars where id=22";> $data=$ms_sql->query($query);> while($obj = $ms_sql->objects('',$data)){> echo $obj->photo;> }> $data=$ms_sql->disconnect();> ?>> </body>> </html>>> But when viewed I just get all the junk code:>> !1AQaq"2B'¡±Á #3RðbrÑ> $4á%ñ&'()*56789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz‚ƒ„…†‡ˆ‰Š'""•–—˜™š¢£¤¥¦§¨(c)ª²³´µ¶·¸¹ºÂÃÄÅÆÇÈÉÊÒÓÔÕÖ×ØÙÚâãäåæçèéêòóôõö÷øù>> What is wrong?>> Thanks!>