Fix for PHP 4.2
authorarjen <arjen>
Sat, 18 Jan 2003 08:40:29 +0000 (08:40 +0000)
committerarjen <arjen>
Sat, 18 Jan 2003 08:40:29 +0000 (08:40 +0000)
src/phpclasses/db.postgres.php

index 1ca3302..234f832 100644 (file)
@@ -57,6 +57,7 @@
    }
    
    function query ($inp_sql_query) {
+
    /* This function executes a query against the active database connection
     * INPUT:
     *   - $inp_sql_query: The is the string with the SQL to execute
@@ -64,6 +65,7 @@
     */
        $this->db_result =  pg_exec ($this->db_connection, $inp_sql_query);
         $this->db_row_number = 0;
+
     }
 
     function fetch_row() {
@@ -74,7 +76,7 @@
      * VALUES SET :  
      */
      unset ($this->db_result_row);
-     if (pg_num_rows($this->db_result) < $this->db_row_number) {
+     if (pg_numrows($this->db_result) < $this->db_row_number) {
         $this->db_row_number=-1;
         return "FALSE";
      }  else {