// by vDk, klekSu query('SELECT id, name, item, world_id FROM lottery WHERE world_id = 0 ORDER BY id DESC LIMIT 1;'); foreach($lottery as $result) { $main_content .= '

Lottery

'; $main_content .= '
Every X hours we will choose one player who will win random item!

Last Winner on World0: '.$result['name'].' won '.$result['item'].' Congratulations!

'; } $lottery2 = $SQL->query('SELECT id, name, item, world_id FROM lottery WHERE world_id = 1 ORDER BY id DESC LIMIT 1;'); foreach($lottery2 as $result) { $main_content .= 'Last Winner on World1: '.$result['name'].' won '.$result['item'].' Congratulations!

'; } ?>