WeberDev.com PHP and MySQL Code

LOG IN
BEGINNER GUIDESPHP CLASSESCODE SEARCHARTICLES SEARCHPHP FORUMSPHP MANUALPHP FUNCTIONS LISTWEB SITE TEMPLATES
Start typing to search for PHP and MySQL Code Snippets and Articles Search


Submit a code Example / Snippet Join us on FaceBook
Submit a code Example / Snippet Submit Your Code
Search Engine Optimization Monitor SEO Monitor
Web Site UpTime Monitor UpTime Monitor
Your Personal Examples List My Favorite Examples
Your Personal Articles List My Favorite Articles
Edit Account Info Update Your Profile
PHP Code Search
Web Development Forums
Learn MySQL Playing Trivia
PHPBB2 Templates
Web Development Resources
Web Development Content
PHPClasses
PHP Editor
PHP Jobs
Vision.To Design
Ajax Tutorials
PHP Programming Help
PHP/MySQL Programming
Webmaster Resources
Webmaster Forum
XML meta language
website builder



Go Back Add a Comment Send this Article to a friend Add this Article to your personal favoritest for easy future access to your favorite Code Examples and Articles. Submit a code example Print this code example.
BACK ADD A COMMENT SEND TO A FRIEND ADD TO MY FAVORITES SUBMIT AN ARTICLE PRINT
Title : Building A Dynamic MySQL Paging Class With PHP
Categories : PHP, Databases, MySQL
devarticles
devarticles
Date : 2002-04-05
Grade : 3 of 5 (graded 1 times)
Viewed : 10614
Search : More Articles by devarticles
Action : Grade This Article
Tools : My Favotite Articles


Submit your own code examples 
 


Introduction

As PHP developers, we can develop pretty much anything that we can think of: database driven sites, complete GUI applications with PHP-GTK, XML based representations of our data, chat applications, search engines, etc.

To create applications like those mentioned above we need a diverse range of tools in our toolkit. By tools, I mean pieces of code or programs that help us develop these applications quicker and easier, such as classes, functions, IDE's and the like. One handy class that I always keep in my PHP toolbox is my custom MySQL recorset paging class, which I developed about 5 months ago. Time and time again I've found myself using this class to develop web sites for my clients, and today I'm going to show you how I created the class.

In this article we're going to work through a step-by-step format to create a highly generic, customizable MySQL recordset paging class with PHP. The class accepts custom queries and options such as the layout of the results and the number of results per page can be changed easily.

To work with the class we're about to create, you should have PHP and MySQL installed on either a Windows or Linux PC. You should also have intermediate knowledge of PHP, regular expressions and MySQL.

Read More...









Time Is Money Part 1 of 2 - Designing and implementing a Web-based application
Categories : PHP, Databases, MySQL, Complete Programs
Date Arithmetic With MySQL
Categories : PHP, Databases, MySQL, Date Time
PHP and MySQL News with Comments
Categories : PHP, Databases, MySQL
User identification using cookies in PHP and MySQL
Categories : PHP, Databases, MySQL, Cookies
Custom MySQL-functions
Categories : Databases, MySQL, PHP, PHP Functions
Saving Images in MySQL
Categories : MySQL, PHP, Graphics, Databases
Watching The Web
Categories : PHP, Databases, MySQL, HTTP, MD5
How To add paging (Pagination) with PHP and MySQL
Categories : PHP, Beginner Guides, Databases, MySQL, HTML and PHP
Referer Statistics
Categories : PHP, MySQL, HTTP, Databases
Beginners guide to PHP and MySQL
Categories : PHP, Beginner Guides, Databases, MySQL, Installation
Descriptions of Common Data Types
Categories : MySQL, Databases, PHP, PHP options/info, General
Creating an IE-Only Database Driven Menu System With PHP, MySQL and DHTML
Categories : PHP, MySQL, Databases, DHTML
Building A Persistent Shopping Cart With PHP and MySQL
Categories : PHP, MySQL, Databases, Ecommerce
Case Study: Handling MySQL Growth With a PHP Class
Categories : Databases, MySQL, PHP
PHP, MySQL and Authentication 101
Categories : PHP, Databases, MySQL, Authentication