** Following query executes properly and gives exact result for login. But when I trying to access fields returned from the query, it shows me null. In below code, I've checked for correct email id and my column name is 'user_email', it validates the user login correctly, but when I was trying to access the same email id from returned result($checkLogin->user_email), it gives me null **
$checkLogin=$db->query("SELECT * from `users` where
`user_email`='$u_email' and `user_password`='$u_password'");
if($checkLogin)
{
$data[]=array(
'status'=>'success',
'email'=>$u_email,
'pass'=>$u_password,
'email1'=>$checkLogin->user_email
);
}
Please give me solution over this