title: PHP/PDO query not working when bindingValues
body: <p>I dont know if I have just been staring at this too long or what..</p>
  
  <p>but if I use a hardcoded query line.. it works.</p>
  
  <p>if I replace those with bindParam() lines..   I get nothing?</p>
  
  <pre><code>//$calibrationDetails_sql = "SELECT equipment.*, employee.* FROM equipment, employee WHERE equipment_brand = 'Toro' AND employee_number = '1'";
  
  $calibrationDetails_sql = "SELECT equipment.*, employee.* FROM equipment, employee WHERE equipment_brand = :equipment_number AND employee_number = :employee_number";
  $calibrationDetails_stmt = $conn-&gt;prepare($calibrationDetails_sql);
  $calibrationDetails_stmt-&gt;bindValue(':equipment_number', $equipment_number);
  $calibrationDetails_stmt-&gt;bindValue(':employee_number', $employee_number);
  $calibrationDetails_stmt-&gt;execute();
  $calibrationDetails_stmt-&gt;setFetchMode(PDO::FETCH_ASSOC);   
  $_calibrationDetails = $calibrationDetails_stmt-&gt;fetch(); //single row  
  //$_calibrationDetails = $calibrationDetails_stmt-&gt;fetchAll(); //returns multi-dimensional array 
  
  $colcount = $calibrationDetails_stmt-&gt;columnCount();
  $rowcount = $calibrationDetails_stmt-&gt;rowCount();   
  var_dump($_calibrationDetails);
  
  if($rowcount &lt;= 0){
      //blah blah
  }else{
      //blah blah
  }
  </code></pre>
  
  <p>if I use fetch or fetchAll.. I still get nothing returned.. IF I use the bindParam() lines.. if its hardcode.. I get my data returned correctly.</p>
  
  <p>I output the variables too, to ensure I was getting $_POST data to work with in my query (its fine/correct)</p>
  
  <p>What am I missing here?</p>