Welcome Guest, Not a member yet? Register   Sign In
Database Problem with returning information.
#2

[eluser]danmontgomery[/eluser]
Code:
$queue = $this->db->get_where('airports', array('icao'=>'ENGM'));
if($queue) {
    foreach($queue->result() as $row) {
        echo $row->country;
        echo $row->name;
        // etc
    }
}

or, if only one row is returned

Code:
$queue = $this->db->get_where('airports', array('icao'=>'ENGM'));
if($queue) {
    $row = $queue->row();
    echo $row->country;
    echo $row->name;
    // etc
}


Messages In This Thread
Database Problem with returning information. - by El Forum - 04-06-2010, 10:05 AM
Database Problem with returning information. - by El Forum - 04-06-2010, 10:12 AM
Database Problem with returning information. - by El Forum - 04-06-2010, 12:40 PM
Database Problem with returning information. - by El Forum - 04-06-2010, 12:57 PM
Database Problem with returning information. - by El Forum - 04-21-2010, 05:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB