title: what's wrong with this single PDO?
body: <p>Here the thing, other PDO works well, but this one doesn't. I have tried with </p>
  
  <pre><code>execute(array(':t'=&gt;$table));
  </code></pre>
  
  <p>with no success. Ideas?.</p>
  
  <pre><code>public function __construct($table){
          try{
                  $pdocnx = new PDO("mysql:host=localhost;dbname=sigcat",'root','');
                  $stmt = $pdocnx-&gt;prepare('select * from sigcat.:t');
                  $stmt-&gt;bindParam(':t', urldecode($table), PDO::PARAM_STR,45);
                  $stmt-&gt;execute();
                  $row = $stmt-&gt;fetchAll(PDO::FETCH_ASSOC);
                  var_dump($row);
          }catch(Exception $e){
              echo $e-&gt;getMessage();
          }   
  
      }
  </code></pre>
  
  <p>I got many records in 'supplies' but it returns array(0) { }. I'm getting the 'table' parameter with $_GET['table']. No exceptions though.</p>