Welcome Guest, Not a member yet? Register   Sign In
How to update joined tables
#1

I've been searching for an answer to this, but evidently the working solution for v2 doesn't work in v3.

Code:
$this->db->set('a.firstname', 'Pekka');
$this->db->set('a.lastname', 'Kuronen');
$this->db->set('b.companyname', 'Suomi Oy');
$this->db->set('b.companyaddress', 'Mannerheimtie 123, Helsinki Suomi');

$this->db->where('a.id', 1);
$this->db->where('a.id = b.id');
$this->db->update('table as a, table2 as b');

That code came from here - http://tinyurl.com/jjarn8r

Does anyone have a working solution please?

Yours Roy
Bee Creative Web Design
www.bcwd.ltd.uk
Reply


Messages In This Thread
How to update joined tables - by GingerNut - 12-03-2015, 10:52 AM
RE: How to update joined tables - by includebeer - 12-05-2015, 02:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB