Pagination + URI Routing problem |
[eluser]mo2men[/eluser]
hi this my code routes.php Code: $routes['review/(:any)'] = "review/index/$1"; review.php Code: <?php review_model Code: <?php now i use Pagination and $routes['review/(:any)'] and when go http://localhost/site/review/mo2men/3 mo2men = $url no get next records(data) from mysql i don't know problem with mysql (model) or bath help????????????
[eluser]SPeed_FANat1c[/eluser]
here you need some debugging. You mean function read($limit, $offset,$gpt='') doesn't return results? Then try echo $limit, $offset,$gpt='' in this function and see if they are correct. And so on.
[eluser]mo2men[/eluser]
ok i try i have error with $offset $offset don't echo it is NULL Howi fix this ?
[eluser]Gerep[/eluser]
Well, I'm new to it but I think in the review/index the line Code: $query = $this->review_model->read($limit,$offset); I read your code and have not found any line where you give the variable $offset any value, try to check that. Hope it really helps =)
[eluser]InsiteFX[/eluser]
Also this. Code: $routes['review/(:any)'] = "review/index/$1"; Should be like this. Code: $routes['review/:any'] = "review/index/$1"; InsiteFX
[eluser]mobilizedesign[/eluser]
isn't the class name supposed to be capitalized? Code: <?php
|
Welcome Guest, Not a member yet? Register Sign In |