title: PHP Functions - Comparison error
body: <p>I am getting an error trying to run the following code. Can you help me fixing this? </p>
  
  <pre><code>   if((invite_limit($id_usr) &gt;= 2)||(pending_users() == ' ')){ 
  
           echo '&lt;div class="new_ativa_off"&gt;';
           echo '&lt;div class="new_qtd"&gt;0&lt;/div&gt;';
  
           echo '&lt;div class="new_txt"&gt;Pending&lt;/div&gt;';
           echo '&lt;/div&gt;';
  
     }else{
  
           echo '&lt;div class="new_ativa" id="nu_open"&gt;';
           echo '&lt;div class="new_qtd"&gt;';
           if($inactive_users &gt;= 2){echo '2';}else{echo $inactive_users;}
           echo '&lt;/div&gt;';
  
           echo '&lt;div class="new_txt"&gt;Pending&lt;/div&gt;';
           echo '&lt;/div&gt;';
     }
  </code></pre>
  
  <p>
  **This is the pending users function >>>>>>>>>>>>>>>>>>>>>>>>>>>
  This is the pending users function >>>>>>>>>>>>>>>>>>>>>>>>>>>**
  
  </p>
  
  <pre><code>    function pending_users(){
  
      include('_config.php');
  
      if ($stmt = $conex-&gt;prepare("SELECT * FROM $tb_user WHERE $user_adate  !=? AND $user_ref =?")) {
  
  
                          $stmt-&gt;bind_param("ss", $nada, $nada);
  
                          $nada = '';
  
                          $stmt-&gt;execute();
  
                          $stmt-&gt;store_result();
                          $inactive_users = $stmt-&gt;num_rows;
  
                          $stmt-&gt;close();
  
                          echo $inactive_users;
  
                          $conex-&gt;close();
                      }
  
  }
  </code></pre>
  
  <p> 
  **invite limit function >>>>>>>>>>>>>>>>>>>>>>>>>>>
  invite limit function >>>>>>>>>>>>>>>>>>>>>>>>>>>**   
  
  </p>
  
  <pre><code>    function invite_limit($id_usr){ 
  
  
              include('_config.php');
              if ($stmt = $conex-&gt;prepare("SELECT * FROM $tb_user WHERE $user_ref =? AND DATE($user_refdate) &gt; DATE_SUB(NOW(), INTERVAL 24 HOUR) AND DATE($user_refdate) &lt;= NOW()")) {
  
                              $stmt-&gt;bind_param("s", $id_usr);
  
                              $stmt-&gt;execute();
  
                              $stmt-&gt;store_result();
                              $activations = $stmt-&gt;num_rows;
  
                              $stmt-&gt;close();
  
                              echo $activations;
                          }
  
              $conex-&gt;close();
  
      }
  </code></pre>