Hi Guys,
I'm attemping to delete a value from a certain row in my database (MYSQL). I have a delete.php file which should delete the league table's on my vBulletin forum. Here is the code I have in my delete.php file:
PHP Code:
$leagueid = $vbulletin->input->clean_gpc('g', 'id', TYPE_UINT);
$leagueid = $db->query_write("
DELETE FROM denver_leagues
WHERE leagueid = $leagueid
");
$db->query_read("
SELECT * FROM `denver_results` WHERE 1
");
I also have the link to delete the league's which works but doesn't delete the actual league you can still see it afterwards.
Any help is appreciated.