title: PDO bindParam() with prepared statement isn't working
body: <p>Ok, this is the problem:</p>
  
  <p>This works:</p>
  
  <pre><code>$STH = $DBH-&gt;prepare("SELECT * FROM juegos WHERE id = 1");
  $STH-&gt;execute();
  </code></pre>
  
  <p>This doesn't:</p>
  
  <pre><code>$STH = $DBH-&gt;prepare("SELECT * FROM juegos WHERE id = :id");
  $STH-&gt;bindParam(':id', '1', PDO::PARAM_STR);
  $STH-&gt;execute();
  </code></pre>
  
  <p>What in the world am I doing wrong? It doesn't even throw an exception</p>
  
  <p>Thank you everyone!</p>
  
  <p>Also, this is the whole code</p>
  
  <pre><code>&lt;?php
      try {
          $DBH = new PDO("everything is", "ok", "here");
  
          $DBH-&gt;setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );
  
          $STH = $DBH-&gt;prepare("SELECT * FROM juegos WHERE id = :id");
          $STH-&gt;bindParam(':id', '1', PDO::PARAM_STR);
          $STH-&gt;execute();
  
          $STH-&gt;setFetchMode(PDO::FETCH_ASSOC);
  
          while($row = $STH-&gt;fetch()) {
              echo $row['nombre']."&lt;br/&gt;";
          }
  
          $DBH = null;
  
          echo "Todo salió bien";
  
      } catch (PDOException $e) {
          echo "Error";
      }
  
  ?&gt;
  </code></pre>