Welcome Guest, Not a member yet? Register   Sign In
Accessing records from 2 tables in a single view
#9

[eluser]adityamenon[/eluser]
[quote author="shailendra" date="1309002169"]This line of code worked too. Thanks.
Code:
$data['projects']= $this->db->where('user_id', 1)->get('projects')->num_rows();
[/quote]

cheers.


Messages In This Thread
Accessing records from 2 tables in a single view - by El Forum - 06-22-2011, 12:24 AM
Accessing records from 2 tables in a single view - by El Forum - 06-22-2011, 05:29 AM
Accessing records from 2 tables in a single view - by El Forum - 06-23-2011, 04:48 AM
Accessing records from 2 tables in a single view - by El Forum - 06-24-2011, 12:27 AM
Accessing records from 2 tables in a single view - by El Forum - 06-24-2011, 09:22 AM
Accessing records from 2 tables in a single view - by El Forum - 06-24-2011, 10:33 AM
Accessing records from 2 tables in a single view - by El Forum - 06-24-2011, 09:53 PM
Accessing records from 2 tables in a single view - by El Forum - 06-25-2011, 12:42 AM
Accessing records from 2 tables in a single view - by El Forum - 06-25-2011, 01:53 AM



Theme © iAndrew 2016 - Forum software by © MyBB