Welcome Guest, Not a member yet? Register   Sign In
update_batch and value increment
#1

[eluser]spezia 018[/eluser]
Hi everybody (sorry for my English)

I have the following problem:

SQL query (example): "UPDATE table SET total = total + '$total'".

But considering that I have multi update, I have to use $this->db->update_batch() method...

Is there any way of using this syntax (increment of total value) in update_batch()?

How can I do this in CodeIgniter?
#2

[eluser]spezia 018[/eluser]
Nobody had this problem?




Theme © iAndrew 2016 - Forum software by © MyBB