Welcome Guest, Not a member yet? Register   Sign In
Troubleshooting my SQL query
#9

[eluser]JHackamack[/eluser]
It took me a bit to get the active record class but I've managed to get it down pat, at least I thought.

Try this:
Code:
$this->db->select('company');
$this->db->where('username', 'jonathan');
$user = $this->db->get('user');
$company = $user->row();
echo $company->company;


Messages In This Thread
Troubleshooting my SQL query - by El Forum - 01-21-2010, 07:57 PM
Troubleshooting my SQL query - by El Forum - 01-21-2010, 08:21 PM
Troubleshooting my SQL query - by El Forum - 01-21-2010, 09:00 PM
Troubleshooting my SQL query - by El Forum - 01-21-2010, 09:03 PM
Troubleshooting my SQL query - by El Forum - 01-21-2010, 09:10 PM
Troubleshooting my SQL query - by El Forum - 01-21-2010, 09:13 PM
Troubleshooting my SQL query - by El Forum - 01-21-2010, 09:17 PM
Troubleshooting my SQL query - by El Forum - 01-21-2010, 09:25 PM
Troubleshooting my SQL query - by El Forum - 01-21-2010, 09:30 PM
Troubleshooting my SQL query - by El Forum - 01-21-2010, 09:35 PM
Troubleshooting my SQL query - by El Forum - 01-22-2010, 01:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB