[eluser]Stelian Mocanita[/eluser]
On the code I sampled above you should e able to login as long as the username and password are correct and num_rows() is greater than 0.
Keep in mind to change the way you check and change the way you validate if the users is logged in or not as $_SESSION will no longer work for you and you will have to check the username for example with
Code:
$this->session->userdata('userid')
instead of
.
Also you can dump the query content here just by using var_dump();