Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
update function using chain method
  • i want to update a table using chaing method the code is given below
     $simstatus Model_Simstatus::query()->where('sim_no''='Input::post('test'));
                   $simstatus->block 'Yes';
                   $simstatus->registration 'Yes';
                    $simstatus->save();
    but it is not working can u help me in to this ,
    i have update code using find method but have not work with chain method to update the result

  • @Gaurish: You need to get the result. Right now you're only creating a query but not doing anything with it (that is, not executing the query).

    Add a ```->get()``` or ```->get_one()``` at the end of your query to get all or just one matching item, respectively.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion