php - Image from database provider not shown, it works on localhost -
I have created a website in PHP with MySQL database. The website works perfectly on my localhost, but when I upload it to the provider server the image is not visible. When I check the database on the provider server, then I think the image file is stored, so this is not an issue, besides this I am losing thank you very much already!
The code on the PHP page is displaying the image:
ObjectImage.php code in the document:
Whatever you do in your code is very dangerous. Your query has SQL-injection when you use mesakuli Use the prepared statement
This is not the best way to store images in a blob area. There may be several problems in it Check your database encoding that everything is UTF-8.
If you receive some errors, then check your logs. It is possible that you have an error before header command. This causes an error because you get an output before the header is sent and the image is not showing
the last chance
Comments
Post a Comment