[eluser]John_Betong[/eluser]
[quote author="artlover" date="1248498414"]Hi friends,
is there any super easy cool trick to get the next id in codeigniter :-)
for example; my page is
.. .... /work/client/38
38 is
id and i want to use a Next Client link. how can it be done? id+1 is not healthy, id can be so different...
Thanks!!![/quote]
I would be tempted to set a $_SESSION['last_id'] variable then have a controller/next function which sets your SQL statement.
No doubt there are numerous other ways but this will get the job done and you can move on to your next problem