$value) { $data[$key] = $tempdata[$key]; } return $data; } // get the number of rows in the resultset //$rows = pg_num_rows($result); //echo "There are currently $rows records in the database."; // close database connection pg_close($link); ?>