In the php you can limit the data to be presented on the page by using Limit statement.
Example Code:
$sql = "SELECT * FROM Orders LIMIT 30";
Code Explanation:
In the above code, we are instructing php to Select the database Orders and limit the entry to maximum 30.