Post view count in codeigniter blog |
[eluser]HeyLetsEcho[/eluser]
So if i under stand you correctly this should be exactly what you need to do. First grab the data from the data base in the model like below. Then pass it on trough to the controller then run a foreachloop to get the number of post hope this helps.If you still dont under stand it private message me here and i can come and help you on Skype or something. for extra documentation here is the link to the docs for the num_rows http://ellislab.com/codeigniter/user-gui...sults.html This is your model Code: public function get_rows(){ |
Messages In This Thread |
Post view count in codeigniter blog - by El Forum - 02-03-2014, 04:26 AM
Post view count in codeigniter blog - by El Forum - 02-04-2014, 02:05 AM
Post view count in codeigniter blog - by El Forum - 02-04-2014, 05:50 AM
|