From bc646b4df636bc2a204b1a0f2d08cc6506fd48fe Mon Sep 17 00:00:00 2001 From: arjen Date: Sat, 18 Jan 2003 08:40:29 +0000 Subject: [PATCH] Fix for PHP 4.2 --- src/phpclasses/db.postgres.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 { -- 2.11.0