From 56881da52a0a3b9cbafd19bb568e38f5eddb3a3b Mon Sep 17 00:00:00 2001 From: Robert Anderson <randerson@lbsd.net> Date: Thu, 7 May 2009 15:01:42 +0000 Subject: [PATCH] Added DBDo function, needs fixing --- webgui/include/db.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/webgui/include/db.php b/webgui/include/db.php index 50684105..49c3c99d 100644 --- a/webgui/include/db.php +++ b/webgui/include/db.php @@ -80,6 +80,17 @@ function DBSelect($query) } +# Perform a command +# Args: <command statement> +function DBDo($command) +{ + global $db; + + # Perform query + $sth = $db->exec($command); + + return $sth; +} ## @fn DBSelectNumResults($query) # Return how many results came up from the specific SELECT query -- GitLab