mysql - Large PHP Arrays pagination -


i have array has on 10k results (generated mysql query) , wonder best practice paginate it? extract data first split pages or there faster/best way?

use mysql's limit syntax retrieve desired results database before reaches php code.

something this:

$offset = 0; $per_page = 25;  $query = "select * `blah` limit $offset, $per_page";  ... 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -