Views in post |
Hi guys, I'm looking at Codeigniter these days and I'll need your help.
I have this class that is nothing but the display of every single page, but I needed to enter a query, where every access was updated to the field "views" in the database. PHP Code: public function get_post($slug = FALSE) { I've added a query that add +1 to the view field, but obviously does not count. So I need to +1 the current value of the field views. PHP Code: public function get_post($slug = FALSE) { Thanks! |
Messages In This Thread |
Views in post - by Marcolino92 - 08-07-2017, 12:37 PM
RE: Views in post - by jarmen_kell - 08-07-2017, 04:10 PM
RE: Views in post - by Marcolino92 - 08-08-2017, 12:08 AM
|