Jump to content

[SOLVED] Simple UPDATE query


Recommended Posts

Hi guys,


I'm trying to create a simple query to update some records.


$this->update(array('lft'=>'lft + 2'), 'lft > ' . $lft);


This works fine, except it does not write the correct value in the lft column, it just writes '0', where as it should be 'lft + 2' i.e. the original value + 2.  I'm not quite sure what I'm doing wrong.



Link to post
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.