Welcome Guest, Not a member yet? Register   Sign In
Get value from Model
#1

[eluser]Unknown[/eluser]
how can i get the value of the field in the table
when my model is like this..?

Code:
function check_exists_email($email)
        {
            $query_str = "SELECT * FROM tbl_user WHERE email = ?";
            
            $result = $this->db->query($query_str, $email);
            
            if ($result->num_rows() > 0)
            {
                return true;
            }
            else
            {
                return false;
            }
        }

i want to get a value from that function example: field "name" from the table
then pass it to my function in my controller..

how can i do this one..?




Theme © iAndrew 2016 - Forum software by © MyBB