--- raquibul islam <[EMAIL PROTECTED]> wrote:
> Hey bob thanks for ur help
> But still stuck in it
>
> 2nd file.I named it image.php
>
> header("Content- type: $image[1]");
No space between dash and "type":
header("Content-type: $image[1]");
Also, system may get confused with array in quoted string. I often include
\r\n at the end of a header() content line:
header("Content-type: " . $image[1] . "\r\n");
There are about a dozen other correct ways to write this.
> echo $image[0];
> }
> mysql_close( );
> }
> ?>
>
> 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">
Spaces in URL won't work. Should be:
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3. org/1999/ xhtml" xml:lang="en" lang="en">
Same problem:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
> <head>
> <title>Test</title>
> <meta http-equiv=" Content-Type" content="text/ html; charset=iso- 8859-1" />
Same problem:
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
> </head>
> <body>
> <div><img src="image.php? i=1" alt="Image description"/></div>
Same problem:
<div><img src="image.php?i=1" alt="Image description"/></div>
> </body>
> </html>
>
>
> and the out put is --->Image description (no image)
James