12 CREATING A DYNAMIC ONLINEGALLERY

what this chapter covers:

  • Why storing images in a database is a bad idea, and what you should do instead
  • Planning the layout of a dynamic gallery
  • Displaying a fixed number of results in a row
  • Limiting the number of records retrieved at a time
  • Paging through a long set of results

In the last chapter, I showed you how to display the contents of the images table in a web page. It didn't look very attractive—text in an unadorned table. However, I hope you will have realized by now that all you need to do to display the images themselves is add <img> tags to the underlying XHTML, and you'll end up with something far more impressive. In fact, by the end of this chapter, you will have created the mini photo gallery ...

Get PHP Solutions: Dynamic Web Design Made Easy now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.