Merge branch 'master' of http://nubati.net/git/e-DoKo
[e-DoKo.git] / include / db.php
index c8750b49d88264a966863103a2b71e0142636d8d..9b691ecb3f8e7c953348f2e2f63e63b55b3513ef 100644 (file)
@@ -85,6 +85,17 @@ function DB_query_array($query)
   return $return;
 }
 
+function DB_query_array_all($query)
+{
+  $result = array();
+  
+  $queryresult  = DB_query($query);
+  while($row = DB_fetch_array($queryresult))
+    $result[] = $row;
+
+  return $result;
+}
+
 function DB_get_passwd_by_name($name)
 {
   $r = DB_query_array("SELECT password FROM User WHERE fullname=".DB_quote_smart($name)."");