while ($memberlist = $DB_site->fetch_array($memberlistquery)) { eval('$endtemplate .= "' . fetch_template('guild_memberrow') . '";'); } if (!$memberlist['username']) { echo "something's wrong."; } // done $templatename = 'guild_memberslist';