title: PHP mysqli_fetch_array gets a general Fatal Error
body: <p>I have to use a php function to manage some data from a db, but i get a Fatal Error on the line where I call mysqli_fetch_array(). </p>
  
  <pre><code>    $request = "SELECT Post.* FROM Post WHERE IdUseFk = '".$user_idPk."';";
      $result  = mysqli_query($CONN, $request)
          or die ("&lt;font color='red'&gt;Error: ".mysqli_error($CONN)."&lt;/font&gt;");
      $num = mysqli_num_rows($result);
  
      if ($num == 0) {echo "NOTHING TO DO HERE";}
      else
      {    
          for ($i=1; $i&lt;=$num; $i++)
          {
              $row = mysqli_fetch_array($result, MYSQLI_ASSOC);  //&lt;&lt;-- ERROR ON THIS LINE
  
              /*...Some other code...*/
          }
  
      } 
  </code></pre>
  
  <p>I get this: Fatal error: in C:\xampp\htdocs\Work\load_data.php on line 137</p>
  
  <p>Any suggestion? </p>
  
  <p>EDIT: PROBLEM SOLVED</p>
  
  <p>I can't believe it. For some reason the 'space' chars I put before and after the '=' char in <code>$row = mysqli_fetch_array()</code></p>
  
  <p>weren't  real spaces but another special char that is blank in most editors but php read as part of the function name. I was able to see it thanks to the editor in cpanel. Now it works</p>