I have a problem with a database that I use for testing where I have 1000 records and I have a website that pulls this data to be displayed. I'm using paging in my query this way
$read->FullRead("SELECT * FROM teste LIMIT $p , $qt_por_pg");
In the php file you have the following variables
$p = $_GET['p'];
$qt_por_pg = 20;
I get via GET
the page number. And I defined that I want 20 results per page the system is all working except for one detail where it pulls the 1000 results so that I want to set a limit of 100 results and not 1000 as I already use the LIMIT to make the pagination how could I define that limit .