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

[eluser]jonyork[/eluser]
Awesome! Thank you for all your help. Might have a few more questions in the next few days, but so far, im really liking CI. Theres a learning curve for sure, but it does seem to help out in the long run.

heres the final code

Code:
<?php

$this->db->select('company')->from('user')->where('username', 'jonathan');
$user = $this->db->get();
$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