From: arjen Date: Sat, 18 Jan 2003 08:40:29 +0000 (+0000) Subject: Fix for PHP 4.2 X-Git-Tag: V0_0_4~21 X-Git-Url: http://www.andromeda.nl/gitweb/?p=gnucomo.git;a=commitdiff_plain;h=bc646b4df636bc2a204b1a0f2d08cc6506fd48fe Fix for PHP 4.2 --- diff --git a/src/phpclasses/db.postgres.php b/src/phpclasses/db.postgres.php index 1ca3302..234f832 100644 --- a/src/phpclasses/db.postgres.php +++ b/src/phpclasses/db.postgres.php @@ -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 {