title: query met num_rows, bind_param and fetch_assoc
body: <p>In this combination of num_rows, bind_param en fetch(_assoc).</p>
  
  <p>I don't get any results in $salt = $saltuitkomst['salt'];</p>
  
  <p>$user = 195</p>
  
  <p>$rows is giving the number 1 as a result</p>
  
  <p>No error messages</p>
  
  <pre><code>$saltqry = "SELECT
                      salt,
                      mw_gegevens_groep
              FROM 
                      mw_gegevens
              WHERE   
                      mw_gegevens_persnr = ?
              ";
              if(!$statement = $connection-&gt;prepare($saltqry))
              {
              echo "Query error:.". $connection-&gt;error();
              } else { 
                  if(!$statement-&gt;bind_param('i', $user)){
                  echo "bind param did not work";
                  }else{
                  $statement-&gt;execute();
                  $statement-&gt;store_result();
                  $rows = $statement-&gt;num_rows;   
                  $saltuitkomst = $statement-&gt;fetch();
                  }
              }
          if($rows == 0) {
                  $salt='';
          } else {
                  $salt = $saltuitkomst['salt'];
                  echo '-'.$salt.'-';
          }
  </code></pre>