MySQL Pagination
The secret to paginating MySQL results lies in the LIMIT clause of its SELECT command.
We'll learn how to paginate results using PHP and Node.js, in order to understand better we'll work with data from a sample table. Create a new database named learnmysql and run this query on it (we are creating a table named songs and populating it some sample data to work on):
[code]
CREATE TABLE `songs` (
...