PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
1. although you can have images in html without the width and height attribute, its good practice to include them. if the images are being cached and image sizes of different, browser may treat them as 0px by 0px.
2. why are you escaping with mysql_real_escape_string()? you are not uploading or downloading from database so it may cause a fatal error and why the image is not being displayed. remove the image/png header and run the image script alone to see if its any errors are coming back
3. make sure your script is working correctly to begin with. i.e. without parameters in its simplest form.
kaszu wrote:My theory: mergetile.php is not in the same folder where is html file (with <img> tag)
that kind of error is very obvious because the browsers show it as an image space with a big red cross in it and if it has an alt tag, the content of the alt tag is also displayed. also not to be picky but you are not following html standards. the image tag needs to be closed with /> and not just > alone. different browsers may interpret this differently.
1. although you can have images in html without the width and height attribute, its good practice to include them. if the images are being cached and image sizes of different, browser may treat them as 0px by 0px.
2. why are you escaping with mysql_real_escape_string()? you are not uploading or downloading from database so it may cause a fatal error and why the image is not being displayed. remove the image/png header and run the image script alone to see if its any errors are coming back
3. make sure your script is working correctly to begin with. i.e. without parameters in its simplest form.
I made sure the script was working without including in my html first. works like a charm till i try to show it with my img tag