how about something like,

 $result = @mysql_query($sql);
 $data = @mysql_result($result, 0, "PICTURE");
 $type = @mysql_result($result, 0, "FILETYPE");
 $comment = @mysql_result($result, 0, "COMMENT");
 Header("Content-type: $type");
 echo $data . "<br>" . $comment;

or, instead of using Header, create a page and inside it put
 printf("%s<br>%s",$image,$comment)

mike

on 7/2/01 1:39 AM, kachaloo at [EMAIL PROTECTED] wrote:

> HI,
> I want to show an image from a database but to do that I am using :
> $result = @mysql_query($sql);
> $data = @mysql_result($result, 0, "PICTURE");
> $type = @mysql_result($result, 0, "FILETYPE");
> Header("Content-type: $type");
> echo $data;
> 
> 
> but after this I also want to show some text info. How can I do this ? I
> will have to use something else besides header. Please Help.
> Thanks,
> Vishal
> 
> 


-- mike cullerton   [EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to