Purchase Solution

Using limit and limitstart to create pages of data

Not what you're looking for?

Ask Custom Question

The purpose of the attach php code searches a MYSQL database and then return the results to the screen.

It works very well, just that it displays all the search results all in one screenful. If it found 100 records then that's how many records it displays to the screen at a time.

Need help making it display 10 records at a time, if search results returns more than 10 records, then it should display a previous and next links as well as page numbers linking to each page. In brief I need help adding pagination to the existing PHP codes. Please let me know how many more credits are require.

Attachments
Purchase this Solution

Solution Summary

This solution shows how to use the MySql limit and limitstart clauses of the SELECT statement to create pages of data when displaying data from a php script.

Solution Preview

It is quite common for scripts that display data from a database to present the information in pages. When the data to display conists of thousands of records it is essential to do this. Fortunately MySql provides an extension to SQL that makes this task relatively simple.

In order to read data from a database the SQL "SELECT" statement is used. The MySql implementation of SELECT allows a limit clause. The limit clause allows the query to specify the number of records that should be returned and the starting point for ...

Purchase this Solution


Free BrainMass Quizzes
Basic Networking Questions

This quiz consists of some basic networking questions.

C# variables and classes

This quiz contains questions about C# classes and variables.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Javscript Basics

Quiz on basics of javascript programming language.