List Info

Thread: Re: Problem with image+MySql+php




Re: Problem with image+MySql+php
country flaguser name
United States
2007-10-02 15:05:42

--- raquibul islam < rana_cse_05%40yahoo.com">rana_cse_05yahoo.com> wrote:

> Hey bob thanks for ur help
> But still stuck in it
>
> 2nd file.I named it image.php
>
> header(&quot;Content- type: $image[1]&quot;);

No space between dash and "type":

header(&quot;Content-type: $image[1]&quot;);

Also, system may get confused with array in quoted string. I often include
rn at the end of a header() content line:

header(&quot;Content-type: " . $image[1] . "rn&quot;);

There are about a dozen other correct ways to write this.

> echo $image[0];
> }
> mysql_close( );
> }
> ?>
&gt;
> and HTML file name show.htm
>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional/ /EN"
> "http://www.w3. org/TR/xhtml1/ DTD/xhtml1- transitional. dtd"&gt;

Spaces in URL won't work. Should be:

&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

> <html xmlns=&quot;http://www.w3. org/1999/ xhtml"; xml:lang=&quot;en&quot; lang=";en"&gt;

Same problem:

<html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=";en"&gt;

>; <head&gt;
> <title&gt;Test</title>
> <meta http-equiv=" Content-Type" content=&quot;text/ html; charset=iso- 8859-1&quot; />

Same problem:

<meta http-equiv="Content-Type&quot; content=&quot;text/html; charset=iso-8859-1&quot; />

> </head&gt;
> <body&gt;
> <div>;<img src="image.php? i=1" alt="Image description"/&gt;</div&gt;

Same problem:

<div><img src="image.php?i=1" alt="Image description"/&gt;</div&gt;

&gt; </body&gt;
> </html&gt;
>
>
> and the out put is --->Image description (no image)

James

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )