From e8b56a58ef9b5dabf77273f540d1ec678e604615 Mon Sep 17 00:00:00 2001 From: Arun Persaud Date: Mon, 26 May 2008 11:08:51 -0700 Subject: 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 --- include/db.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/db.php') 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).""); -- cgit v1.2.3-18-g5258