note 66321 rejected from faq by nlopess

From: Date: Fri, 19 May 2006 08:08:50 +0000
Subject: note 66321 rejected from faq by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-111650@lists.php.net to get a copy of this message
Note Submitter: mannedinesh at yahoo dot com ---- sir, I am displaying my image from my data base, my code is as follows. @MYSQL_CONNECT("localhost","root",""); @mysql_select_db("shopping"); $query = "select bin_data,filetype from binary_data where id=$id"; $result = @MYSQL_QUERY($query); $data = @MYSQL_RESULT($result,0,"bin_data"); $type = @MYSQL_RESULT($result,0,"filetype"); Header( "Content-type: $type"); echo $data; echo $type; it gives binary information of the image only. it dont get the real image in browser. if any one get answer please reply to me

« previous php.notes (#111650) next »