Welcome Guest, Not a member yet? Register   Sign In
DB relations in Codeigniter
#1

Hi guys, I'm getting desperate trying to figure out how can I access data from DB by using relations. I have successfully related two tables by setting foreign key and now I am little bit confused. Confused

Let's say I have two tables -> Cars(id, size, color) and Drivers(id, car_id, name).

IDs are primary keys, car_id is foreign key. Now, I'd like to know what color or size is George's car. Could someone tell me what is the easiest way to echo it by Codeigniter? 
Reply


Messages In This Thread
DB relations in Codeigniter - by tomop - 06-13-2015, 03:29 PM
RE: DB relations in Codeigniter - by pdthinh - 06-13-2015, 07:08 PM
RE: DB relations in Codeigniter - by Blair2004 - 06-14-2015, 05:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB