I want to know what method to use to view Images from my MYSQL database using PHP. i know that for basic data it is getString(). what about for images?
edensigauke
-8
Light Poster
Recommended Answers
Jump to PostI want to know what method to use to view Images from my MYSQL database using PHP. i know that for basic data it is getString(). what about for images?
Jump to PostDear edensigauke, you have failed to include any information regarding the issue, such as your SQL table, any code that you've tried. The functions that you quote:
getMime()
andgetString()
are not php functions, but probably user-defined functions.Stefano actually helped you search for 'blob storage', commonly used for images …
Jump to PostHere is one way to go about this:
You'll need a php script, e.g."image.php", that will pretent to be a jpg/png or other image file.
So you'll end up with html like this <img src='image.php' />The code in "image.php" will be something like this:
//VERY IMPORTANT: …
All 9 Replies
Stefano Mtangoo
455
Senior Poster
the_traveller
0
Newbie Poster
edensigauke
-8
Light Poster
edensigauke
-8
Light Poster
diafol
edensigauke
-8
Light Poster
Some-Jackass
0
Newbie Poster
edensigauke
-8
Light Poster
edensigauke
-8
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.