Break the records returned by a database in to different pages. You can set the number of records per page with easy navigational links to different pages.
Control the flow or structure of php code by using logical functions flows. Use the PHP Switch function when one of the different options is to be matched. The number of iteration process can be managed by using While loop.