global $database, $wb; $sections=explode(",",$section); reset($sections); array_unshift($sections," "); while($sectionid=next($sections)){ $get_content = $database->query("SELECT content FROM ".TABLE_PREFIX."mod_wysiwyg WHERE section_id = '$sectionid'"); $fetch_content = $get_content->fetchRow(); $content = $content.($fetch_content['content']); } $wb->preprocess($content); return $content;