diff options
| author | Starla Insigna <hatkirby@fourisland.com> | 2008-12-14 09:39:10 -0500 |
|---|---|---|
| committer | Starla Insigna <hatkirby@fourisland.com> | 2008-12-14 09:39:10 -0500 |
| commit | 9cb1fcba82027daa21eb457f1b2912ee02e5c7eb (patch) | |
| tree | b9ad822ca0f186f42da00e1a2c882ede77d2ee14 /includes/db.php | |
| parent | f037e1d6baa069b324b7a0fd6eaffbdfb5c6f4dc (diff) | |
| download | fourisland-9cb1fcba82027daa21eb457f1b2912ee02e5c7eb.tar.gz fourisland-9cb1fcba82027daa21eb457f1b2912ee02e5c7eb.tar.bz2 fourisland-9cb1fcba82027daa21eb457f1b2912ee02e5c7eb.zip | |
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.
Diffstat (limited to 'includes/db.php')
| -rwxr-xr-x | includes/db.php | 9 |
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 | ||
| 49 | function 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 | ?> |
