I want to fetch blob datatype of images from MySQL database using PHP and these images displayed in iPhone UIImageView. Can anybody post some PHP code to retrieve images from MySQL?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here’s an exemplary tutorial: http://forum.codecall.net/php-tutorials/7663-tutorial-storing-images-mysql-php-part-ii-display-your-images.html.
The key is
Note, that the linked tutorial also shows you a good example of an sql injection vulnerability. Before assembling the query try at least something like
mysql_real_escape_string().