I have a problem with pagenition pls help |
[eluser]Ckirk[/eluser]
You could make use of the form validation library to determine whether $this->uri->segment(3) is actually a number. I've changed your code so try the code below. It's untested but should work. I haven't accounted for anyone entering a valid page number, which exceeds the number of records in the database. In this scenario your query would return zero results but I'm sure you know how to handle that - at least there's no DB/SQL errors now ![]() Code: <?php |
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
|