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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.