$startpost = "6";
$postsperday = 2; // every 2 hours
for ($i = 0; $i < $postsperday; $i++) {
$stamp = $startpost + $next;
$startpost = $stamp;
echo "$stamp, ";
}
so this creates
8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30,
which is essentially correct,
but i wan't to restrain the count to a 24 hour clock,
so it would't hit 26, 27, 28, 30, and instead it would loop back to 2,4,6,8