Exportparameter für db_fetch_array hinzugefügt

This commit is contained in:
Andreas Österreicher
2020-05-19 18:05:44 +02:00
parent 01e11d9453
commit ed3e0f2b48
2 changed files with 5 additions and 5 deletions
@@ -103,7 +103,7 @@ if ($semester != '')
$zeile=1;
if ($result = $db->db_query($qry))
{
while ($row = $db->db_fetch_array($result))
while ($row = $db->db_fetch_array($result, null, PGSQL_BOTH))
{
$zeile++;
$i = 0;
@@ -150,7 +150,7 @@ if ($result = $db->db_query($qry))
}
$zeile++;
while ($row_betreuer = $db->db_fetch_array($result_betreuer))
while ($row_betreuer = $db->db_fetch_array($result_betreuer, null, PGSQL_BOTH))
{
$i = 1;
+3 -3
View File
@@ -172,12 +172,12 @@ class basis_db extends db
return pg_result_seek($result, $offset);
}
public function db_fetch_array($result=null)
public function db_fetch_array($result=null, $row=null, $result_type=PGSQL_NUM)
{
if(is_null($result))
return pg_fetch_array($this->db_result);
return pg_fetch_array($this->db_result, $row, $result_type);
else
return pg_fetch_array($result);
return pg_fetch_array($result, $row, $result_type);
}
public function db_num_fields($result=null)