PhpRiot
Follow phpriot on Twitter
Sponsored Link
Download Article
Download this article in PDF format with all listings and files.

Includes 1 bonus listing!

Price: $5.00 AUD
(Approx. $5.00 USD)

More information
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store
Free iPad/iPhone App
Available on the App Store

  • PHP manual
  • Zend Framework manual
  • Smarty manual
  • PHP articles
  • PHP training

Related Books
Robin Nixon's HTML5 Crash Course: Learn HTML & HTML5 in 20 Easy Lectures

Robin Nixon's HTML5 Crash Course: Learn HTML & HTML5 in 20 Easy Lectures

Whether you are a professional or amateur web developer you need all the HTML5 tools in your...

Robin Nixon's CSS & CSS3 Crash Course

Robin Nixon's CSS & CSS3 Crash Course

From the author of the top-selling book Learning PHP, MySQL & JavaScript and the popular Robin...

Storing Images in MySQL Revisited

Summary

In this article I showed you how to store images in MySQL. We began by looking at MySQL's blob data type, used for storing binary data.

Next I showed you how to create a file upload form, as well as how to process the file upload.

Next we created a script to send an image to the user's browser, including setting the correct HTTP headers.

Finally, we created a list of previously uploaded images so they can be viewed.

Further Reading

Other Options

In This Article



Bonus listings: 1 available