Thanks Gee Bee, I did what you suggested and made a change of my own and now it works.
I do have another question you may be able to help with though.
This is the change I made from $limit = 10 to $limit = 2 becuase my news items can be quite long so I only want 2 per page
- PHP: Select all
//set default if: $limit is empty, non numerical, less than 2, greater than 50
if((!$limit) || (is_numeric($limit) == false) || ($limit < 2) || ($limit > 50)) {
$limit = 2; //default
How do I edit these hyperlinks or do i not have to?
- PHP: Select all
//Results per page: **EDIT LINK PATH**
echo("
<a href=?page=newsitem&limit=10&pagenum=1></a>
<a href=?page=newsitem&limit=25&pagenum=1></a>
<a href=?page=newsitem&limit=50&pagenum=1></a>");
Thanks for all your help helping me out
