query("UPDATE ".$bb_table_prefix."counter SET hits = hits + 1"); $counter = $bbdb->get_row("SELECT hits FROM ".$bb_table_prefix."counter LIMIT 1"); echo "Ye olde website counter: " . $counter->hits . ""; } ?>