This is not how HTTP works.
You're trying to output the data for two URLs at once. You need to handle the page HTML and the image data in two separate requests, because that's what your browser sends you. Your HTML never links to the image.
Let me suggest that you start out with a static image (and possibly static HTML), then move towards dynamic HTML and the static image, and then move from a static image to creating a dynamic image. That way, you will have separated the steps into programs.
In reply to Re: my image is not showing
by Corion
in thread my image is not showing
by ITmajor
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |