Welcome Guest, Not a member yet? Register   Sign In
Multiple Database Queries
#3

[eluser]joshvermaire[/eluser]
Jaketoolson, thanks for getting back to me on this.

The problem is that in the second query,
Code:
$row['app_id']
gives me an error. If I did
Code:
$row[0]['app_id']
it would return a value, but then that only lets me query for one app_id where I want to query for all of them.

Maybe a join is better, like you said. Could you help me with the code?

Would I add the following to the first query?

Code:
$this->db->join('applications', 'applications.id = using.app_id');

Can I use method chaining to just select app_name from the join?

Thanks.


Messages In This Thread
Multiple Database Queries - by El Forum - 02-14-2011, 04:07 AM
Multiple Database Queries - by El Forum - 02-14-2011, 12:21 PM
Multiple Database Queries - by El Forum - 02-14-2011, 02:03 PM
Multiple Database Queries - by El Forum - 02-14-2011, 02:26 PM
Multiple Database Queries - by El Forum - 02-14-2011, 02:38 PM
Multiple Database Queries - by El Forum - 02-14-2011, 03:09 PM
Multiple Database Queries - by El Forum - 02-14-2011, 03:15 PM
Multiple Database Queries - by El Forum - 02-14-2011, 05:18 PM



Theme © iAndrew 2016 - Forum software by © MyBB