public static function getTagsForGame($pack) { $sql_tags = dbconnection::queryArray("SELECT * FROM tags WHERE game_id = '{$pack->game_id}'"); $tags = array(); for ($i = 0; $i < count($sql_tags); $i++) { if ($ob = tags::tagObjectFromSQL($sql_tags[$i])) { $tags[] = $ob; } } return new return_package(0, $tags); }