title: PHP PostgreSQL prepared statement without parameters
body: <p>I was wondering if it's possible to prepare statements using PHP's pgsql library that do not require parameters.</p>
  
  <p>I'm really used to preparing all my SQL statements in the beginning of a program instead of when I need them so my code always looks similar to this</p>
  
  <pre><code>&lt;?php
  
      $pgsqlCon = // code to connect
  
  
      // prepare SQL statements
  
      $sql = "SELECT * FROM table01 " .
             "WHERE t01_idno &gt;= $1";
      pg_prepare($pgsqlCon, "table01_cur", $sql);
  
      $sql = "SELECT * FROM table02 " .
             "WHERE t02_idno = $1";
      pg_prepare($pgsqlCon, "table02_sel", $sql);
  
  
      // start main
  
      $table01 = pg_execute($pgsqlCon, "table01_cur", array('1'));
      while ($row = pg_fetch_row($table01)) {
          echo "&lt;span&gt;found something&lt;br /&gt;&lt;/span&gt;";
      }
  
      $table02 = pg_execute($pgsqlCon, "table02_sel", array('1'));
      while ($row = pg_fetch_row($table02)) {
          echo "&lt;span&gt;found something else&lt;br /&gt;&lt;/span&gt;";
      }
  
  
  ?&gt;
  </code></pre>
  
  <p>So I would like to prepare statements that don't require parameters in this way as well if that is possible.</p>