Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
How do i update by count up db field?
I have table that contain views count.
I want it to just count up +1.
How do i update `views`+1 in ORM or even DB style?
Thank you to @
on this topic.
$entry = \MyModel::find($id);
$entry->views = \DB::expr('views+1');
Add a Comment
It looks like you're new here. If you want to get involved, click one of these buttons!
Apply for Membership
↳ Job Board
↳ Installation & Setup
↳ Tips and Tutorials
↳ Code share
In this Discussion