The error is probably something stupid, but I can't find the mistake to save my life.
I have this piece of code in my program:
$validate = (
  $num_rows > 1 || 
  $num_rows == 0);
if ($validate) {
  $data['code'] = 2;
} else {
  $data['code'] = 1;
  while ($a = $resultados->fetch_assoc()) {
    $data['response'] = $a;
  }
}
I 'believe' its written correctly, however when ran, I'm getting the error 500 and the logs read:
Syntax error: Unexpected '$num_rows' (T_VARIABLE) on line 21...
Line 21 is the second validation for $num_rows.
Any suggestions?
Thanks in advance!
 
     
    