[eluser]huangxiao[/eluser]
Hi, I need help please why is that num_rows() function is error when I am connected to MSSQLSERVER?
$username = $this->input->post('username');
$password = $this->input->post('password');
$query = $this->db->query("SELECT * FROM stdtbl where username='$username' and password='$password'");
if ($query->num_rows() > 0)//it raises error here.
{
$row = $query->row();
return true;
}
Thank you in advance