I have a really large data set from SQL that i need to paginate.
I have an issue with my pagination code. The code does show the page number in the URL
Try:
$sql='SELECT * FROM ETF LIMIT ' . $results_per_page . ' OFFSET ' . $this_page_first_result;
Also as mentioned you should sort by a certain column with 'ORDER BY' for consistent results.