From 9cb1fcba82027daa21eb457f1b2912ee02e5c7eb Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sun, 14 Dec 2008 09:39:10 -0500 Subject: Major design and code overhaul I don't know, a lot of stuffses happened that I don't quite remember anymore. Goodness, that's not good. --- includes/db.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'includes/db.php') diff --git a/includes/db.php b/includes/db.php index 8cc5449..8f305e7 100755 --- a/includes/db.php +++ b/includes/db.php @@ -46,4 +46,13 @@ function db_multi_select($query, $callback) } } +function db_count($query) +{ + $cntitem = $query; + $cntitem2 = mysql_query($cntitem) or die($cntitem); + $cntitem3 = mysql_fetch_array($cntitem2); + + return $cntitem3['COUNT(*)']; +} + ?> -- cgit 1.4.1