}
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
*/
$this->db_result = pg_exec ($this->db_connection, $inp_sql_query);
$this->db_row_number = 0;
+
}
function fetch_row() {
* 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 {