I can now successfully delete the leagues with this PHP Code:
PHP Code:
$leagueid = $vbulletin->input->clean_gpc('g', 'leagueid', TYPE_UINT);
$league = $db->query_write("
DELETE FROM denver_leagues
WHERE leagueid = 1 = $leagueid
");
$db->query_read("
SELECT * FROM `denver_results` WHERE 1
");
The only problem is I wanted a confirmation page when you click the delete button. At the moment it just appears "You have successfully deleted this league".