I am having the issue 'mysql_num_rows() expects parameter 1 to be resource, boolean given'
I realise this means that the query has failed. However, I am first doing a check to see if the query was successful and within that if, i am getting this error. I am not sure why I would get into the if in the first place if the query failed?? Also i have tried echoing out the query and pasting into phpmyadmin and it runs successfully..
Code below:
$checkloginEmp = "CALL login('".$Email."','".$Password."', '".$NotificationID."', '".$Token."', @numRowsParam, @userIDParam);";
//echo $checkloginEmp;
if ($check = mysql_query($checkloginEmp)){
//echo $check;
if(mysql_num_rows($check) == 1) {
//retrieve info. issue points to here
$status= 'OK';
$message= null;
}
else{
$status= 'Not OK';
$message= "Invalid email/pass combination";
}
}