DocM Posted June 10, 2013 Share Posted June 10, 2013 I have the attached files to upload an image to mysql. The image appears on the page and is entered into the data base. However when I Return to the page the image is missing. So I included the get_league_1 .php and nothing happens EXCEPT I get an error message saying The image “http://127.0.0.1/tables/League_1/example.php” cannot be displayed because it contains errors. league_1.php get_league_1.php. How exactly do I display the last image on a website? Quote Link to comment https://forums.phpfreaks.com/topic/278980-download-blob-image-to-web-page/ Share on other sites More sharing options...
mac_gyver Posted June 10, 2013 Share Posted June 10, 2013 to display an image on a web page you must use an <img > tag, like your league_1.php file is doing on line 49. you cannot just include the get_league_1.php file on a web page since the http request for the image must output the image content-type header (so that the browser knows what to do with the content) followed by the image data. the http request for the image must be a completely separate request. Quote Link to comment https://forums.phpfreaks.com/topic/278980-download-blob-image-to-web-page/#findComment-1435151 Share on other sites More sharing options...
DocM Posted June 10, 2013 Author Share Posted June 10, 2013 to display an image on a web page you must use an <img > tag, like your league_1.php file is doing on line 49. you cannot just include the get_league_1.php file on a web page since the http request for the image must output the image content-type header (so that the browser knows what to do with the content) followed by the image data. the http request for the image must be a completely separate request. Thanks for your advice. I tried to understand and did the attached file but still returns The image “http://127.0.0.1/tables/League_1/example.php” cannot be displayed because it contains errors. Further advice would be really appreciated.example.php Quote Link to comment https://forums.phpfreaks.com/topic/278980-download-blob-image-to-web-page/#findComment-1435178 Share on other sites More sharing options...
DocM Posted June 11, 2013 Author Share Posted June 11, 2013 As I am still unable to see an image is anyone able to write the code that will put image onto webpage for a small fee? Quote Link to comment https://forums.phpfreaks.com/topic/278980-download-blob-image-to-web-page/#findComment-1435291 Share on other sites More sharing options...
Q695 Posted June 11, 2013 Share Posted June 11, 2013 Why not just do an image upload, they're incredibly easy. Quote Link to comment https://forums.phpfreaks.com/topic/278980-download-blob-image-to-web-page/#findComment-1435322 Share on other sites More sharing options...
mac_gyver Posted June 11, 2013 Share Posted June 11, 2013 As I am still unable to see an image is anyone able to write the code that will put image onto webpage for a small fee? most of the people reading this charge in the neighborhood of $100 US per hour, minimum of one hour. are you sure you wouldn't like to attempt to learn and solve this yourself? the Php Coding Help forum is for programmers to get help with their code. if you want someone to write this code for you, post your request in the Freelancing forum section. all you did to the code was to copy/paste the contents of the file you were previously including, at the point where you were including that file. that's not what someone suggested and in fact you were pointed to an example in your own code that shows how to dynamically display an image. Quote Link to comment https://forums.phpfreaks.com/topic/278980-download-blob-image-to-web-page/#findComment-1435362 Share on other sites More sharing options...
Solution Q695 Posted June 11, 2013 Solution Share Posted June 11, 2013 Use these videos: http://www.youtube.com/watch?v=T0Uv3VeTMR8 Quote Link to comment https://forums.phpfreaks.com/topic/278980-download-blob-image-to-web-page/#findComment-1435401 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.