O'Reilly logo

PHP Solutions: Dynamic Web Design Made Easy by David Powers

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required