Welcome Guest, Not a member yet? Register   Sign In
Not getting the result I'm expecting from this simple query
#1

[eluser]dallen33[/eluser]
Code:
$query = $this->db->get_where('clients', array('name' => $name))->row()->id;
        
        if ($query->num_rows() > 0):
            return $query->result();
        else:
            return false;
        endif;

Any idea what I'm doing wrong? I'm expecting to get the actual ID from "return $query->result();". What might I be doing wrong?


Messages In This Thread
Not getting the result I'm expecting from this simple query - by El Forum - 05-16-2011, 04:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB