Welcome Guest, Not a member yet? Register   Sign In
I have a problem with pagenition pls help
#7

[eluser]Pert[/eluser]
You can force 404 error, there are some examples on this page

http://stackoverflow.com/questions/12367...cing-a-404

You could also help visitor out a little and normalise the values

Code:
if ($page < 1)
   $page = 1;
else if ($page > $total_pages)
   $page = $total_pages;

This way they will still see meaningful information rather than are forced to 404 page. Lets say there is only one item on the last page that they are trying to access and you delete said item, they will end up on 404 page when in fact it would be more helpful if it just lands on last page available.


Messages In This Thread
I have a problem with pagenition pls help - by El Forum - 09-17-2012, 11:01 PM
I have a problem with pagenition pls help - by El Forum - 09-18-2012, 12:24 AM
I have a problem with pagenition pls help - by El Forum - 09-18-2012, 12:34 AM
I have a problem with pagenition pls help - by El Forum - 06-19-2013, 06:42 PM
I have a problem with pagenition pls help - by El Forum - 06-22-2013, 04:01 PM
I have a problem with pagenition pls help - by El Forum - 06-23-2013, 07:57 PM
I have a problem with pagenition pls help - by El Forum - 06-24-2013, 01:00 AM
I have a problem with pagenition pls help - by El Forum - 06-24-2013, 08:41 PM
I have a problem with pagenition pls help - by El Forum - 06-24-2013, 10:31 PM



Theme © iAndrew 2016 - Forum software by © MyBB