function delround(&$smarty) { $id = trim($_REQUEST['id']); $sid = trim($_REQUEST['sid']); $tour = new tournaments($id); $tour->remove_round($sid); }