summary refs log tree commit diff stats
path: root/includes/db.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/db.php')
-rwxr-xr-xincludes/db.php9
1 files changed, 9 insertions, 0 deletions
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)
46 } 46 }
47} 47}
48 48
49function db_count($query)
50{
51 $cntitem = $query;
52 $cntitem2 = mysql_query($cntitem) or die($cntitem);
53 $cntitem3 = mysql_fetch_array($cntitem2);
54
55 return $cntitem3['COUNT(*)'];
56}
57
49?> 58?>