Bug in demo: Server-side processing | PHP with PostgreSQL
Bug in demo: Server-side processing | PHP with PostgreSQL
acidstout
Posts: 8Questions: 0Answers: 0
Line 53 is
[code]
$sLimit = "LIMIT ".intval( $_GET['iDisplayStart'] )." OFFSET ".
intval( $_GET['iDisplayLength'] );
[/code]
but has to be
[code]
$sLimit = "LIMIT ".intval( $_GET['iDisplayLength'] )." OFFSET ".
intval( $_GET['iDisplayStart'] );
[/code]
otherwise the first table page is empty and clicking through next pages adds results to the current page.
[code]
$sLimit = "LIMIT ".intval( $_GET['iDisplayStart'] )." OFFSET ".
intval( $_GET['iDisplayLength'] );
[/code]
but has to be
[code]
$sLimit = "LIMIT ".intval( $_GET['iDisplayLength'] )." OFFSET ".
intval( $_GET['iDisplayStart'] );
[/code]
otherwise the first table page is empty and clicking through next pages adds results to the current page.
This discussion has been closed.
Replies
Allan