Thanks for the code, TECK, but I already had figured out a solution

. Your code wouldn't work anyways though, besides the fact that I'm not doing in vB, that also doesn't fit my data format

. Here is what I ended up doing...
PHP Code:
$hits_query = mysql_query("SELECT SUM(hitscount) AS totalhits FROM hits
WHERE time>" . (time() - 60*60*24*3) . " AND siteid={$site['siteid']}");
$site['hits'] = intval(mysql_result($hits_query, 0));