Welcome Guest, Not a member yet? Register   Sign In
Undefined index: userid & Fatal error: ob_start
#11

[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
Code:
$_SESSION['userid']
.

Also you can dump the query content here just by using var_dump();
#12

[eluser]langithitam[/eluser]
Sory Stelian, dont understand. U can call me lamer. Can u explain it more detail using common language
#13

[eluser]midknight[/eluser]
Just ran into this.
Your welcome controller needs to start a session as well.

function welcome()
{
parent::Controller();
session_start();
}




Theme © iAndrew 2016 - Forum software by © MyBB