How to create a gallery class

In this tutorial, we will create a gallery class, and also a template class that will work together with the gallery class.

Related Topics

How to Create an Infinite Scrolling Web Gallery
When working my way through a web gallery, I find it annoying when I must change pages; so in todays tutorial, we will learn how to create an auto generating, one page, infinite scrolling gallery with PHP and AJAX.


Part 3 What Are Class Constructors?
So just what are class constructors, and how can they be used within PHP classes/OOP programming? When a PHP class is first called, the class will automatically run the class constructor function, which can help automatically configure the class. This can be useful if you need to preset some instance variables, sessions or cookies prior to using the class methods.


Create an image gallery with AMFPHP
An advanced image gallery using flash remoting AMFPHP and GD library.


An Expandable Form Validation Class: Part 2
In Part 1 of this tutorial, we covered the basics of our Form Validation Class. We explained how the core of the Class depends on regular expressions and gave an insight regarding the keyword concept. We also explained how each keyword will have a corresponding Class Method so that we can easily extend the Class in the future to suit our needs. In Part 2, we will get our hands dirty in creating the remaining useful Class Methods that will instruct the Class which form fields to validate and how to validate them.


Create an intelligent XML image Gallery and Slideshow
In this article you will learn how to create an intelligent XML image Gallery & Slideshow in Flash CS4 (+PHP)


An Expandable Form Validation Class: Part 1
Learn how to create an expandable Form Validation Class, that once complete, you will able to use in any of your PHP scripts. The beauty of this Class is that it is expandable with ease. This means that once the base code of the Class is complete, you can easily configure it to validate different types of form data with virtually no changes. The extra configurations will only be limited to your programming knowledge.


How to use the LoadVars Class
The LoadVars class allows developers to have a better control of the external loaded data. There are many reason to use the LoadVars class intead of the old deprecated loadvariables and loadvariablesNum.


Creating a Crypter Class
In this article I will explain how to create a PHP Class that will encrypt and decrypt any data with a given password. It is object programmed and uses existing PHP algorithms.


PHP Table Class
This is a class for generating HTML tables. It's kind of rough, but I thought somebody might want to do something with it.


Creating a bank_account Class
To demonstrate the use of a class, lets create one to model a bank account.A bank account has certain information associated with it, such as itsaccount number, the PIN number needed to access it, and its balance.


Creating a bank_account Class
To demonstrate the use of a class, lets create one to model a bank account.A bank account has certain information associated with it, such as itsaccount number, the PIN number needed to access it, and its balance.


An Expandable Form Validation Class: Part 3
In this final Part we will be coding some example validation rules and explaining how to use them. We will then go on and show how the final complete Class can be applied in a real working environment, so that you can use it in all your future scripts. At the end of this Part, you should have gained a complete understanding of how the Class operates, and proceed to expand on it with ease.


Clean way to call to multiple xmlrpc remote servers
I've got a class library in PHP. This class library is distributed in a several servers and I want to call them synchronously. The class library has a XMLRPC interface with Zend Framework XMLRPC server.


How to write a basic PHP Class
This tutorial is for beginners who want to learn oop in php and this tutorial explains how to create a basic php class.


IP Information Class
ipInfo is Extremely useful PHP class to detect your Country Code, Region, City, location, Latitude and Longitude information automatically.


Developing a URL Handling Helper Class in PHP 5
In this third installment of a series on building helpers in PHP 5, I will provide you with the basic pointers for building a URL-handling helper class. The code examples, though simple, should serve to demonstrate how to create a helper that generates dynamic URLs.


Advance Pagination Class
This class will display the results of any MySQL table including all the fields and rows. It will work out how many fields there are and display the results accordingly


Simple Class-Based Querying
Though it is usually advisable to use some sort of framework or CMS, sometimes a project is small enough such that those options would weigh down the development. However, even in smaller projects, separating presentational elements from backend querying should not be ignored. This tutorial will walk you through creating a basic class-based querying engine for PHP and MySQL.


PHP Class Tutorial - Part 2 - What is $this->
This tutorial will explain what $this-> is all about, and how to further your PHP class knowledge!


PHP and MySQL Communication Class
MySQL and PHP are a very common combination, especially with large scale websites, or websites with frequently updated content. So if you're going to creating a website, its best that you manage your PHP and MySQL relationship well. In this tutorial we will look at making a class that we can use to manage all of our connections and queries to our MySQL Database.


Categories