>>7
How about using a better language. And making a separate function that parses the post query string into an array of post ids. And getting rid of the fucking duplicate code.
Oh fuck, OOP is so 90s! PrintPost($i, $name, $trip, $date, $id, $message, $postfile, 1, $boardname);