Jump to content

Question

1 answer to this question

Recommended Posts

Posted

Change this block to:

	// SQL query
	$limit = ( isset($_GET['limit']) ? intval ($_GET['limit']) : 0 );	
	$strSQL = "SELECT * FROM itemizer ORDER BY id DESC LIMIT ".$limit.", 100";
So, you will limit the result to 100 entries and can paginate in the browser (query string) by adding limit=(number)

Eg:

http://localhost/itemizer.php?limit=10 will display 100 results after the 10 first.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...