summaryrefslogtreecommitdiffstats
path: root/include/db.php
diff options
context:
space:
mode:
authorArun Persaud <arun@nubati.net>2008-05-26 11:08:51 -0700
committerArun Persaud <arun@nubati.net>2008-05-26 11:08:51 -0700
commite8b56a58ef9b5dabf77273f540d1ec678e604615 (patch)
treec6ef2a571b167d838b095f4e42c21a1b2b4b8d9b /include/db.php
parent1132ca2ccda76df5ed2b1bea6b64015d4dc86880 (diff)
downloade-DoKo-e8b56a58ef9b5dabf77273f540d1ec678e604615.tar.gz
e-DoKo-e8b56a58ef9b5dabf77273f540d1ec678e604615.tar.bz2
e-DoKo-e8b56a58ef9b5dabf77273f540d1ec678e604615.zip
LAYOUT: added a unified table layout for statistics, etc
a table that can be styled via CSS is created from an array. Signed-off-by: Arun Persaud <arun@nubati.net>
Diffstat (limited to 'include/db.php')
-rw-r--r--include/db.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/db.php b/include/db.php
index c8750b4..9b691ec 100644
--- a/include/db.php
+++ b/include/db.php
@@ -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)."");