Welcome Guest, Not a member yet? Register   Sign In
num_rows() problem
#2

[eluser]InsiteFX[/eluser]
Code:
if ($this->session->userdata('username') == "")
{
    echo "Blank";
}
else
{
    echo "Not Blank";
}

$this->db->where('username', $this->session->userdata('username');
$query = $this->db->get('users');

print_r ($query->num_rows());

InsiteFX


Messages In This Thread
num_rows() problem - by El Forum - 01-26-2011, 06:59 PM
num_rows() problem - by El Forum - 01-26-2011, 07:26 PM
num_rows() problem - by El Forum - 01-26-2011, 07:39 PM
num_rows() problem - by El Forum - 01-26-2011, 07:59 PM
num_rows() problem - by El Forum - 01-26-2011, 08:04 PM
num_rows() problem - by El Forum - 01-26-2011, 08:23 PM
num_rows() problem - by El Forum - 01-26-2011, 08:30 PM
num_rows() problem - by El Forum - 01-26-2011, 08:51 PM
num_rows() problem - by El Forum - 01-26-2011, 09:23 PM
num_rows() problem - by El Forum - 01-26-2011, 11:18 PM
num_rows() problem - by El Forum - 01-27-2011, 12:45 AM
num_rows() problem - by El Forum - 01-27-2011, 01:23 AM
num_rows() problem - by El Forum - 01-27-2011, 10:33 AM



Theme © iAndrew 2016 - Forum software by © MyBB