fix teams_abmelden
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
$deleteThisteamID = $row["id"];
|
||||
}
|
||||
if($deleteThisteamID > 0 ){
|
||||
$abfrage = "DELETE FROM teams WHERE id = $deleteThisteamID";
|
||||
$abfrage = "DELETE FROM teams WHERE id = $deleteThisteamID;";
|
||||
mysqli_query($link,$abfrage);
|
||||
|
||||
$result = mysqli_query($link,"SELECT COUNT(*) AS n FROM teams AS T1, team_turniergruppe AS T2 WHERE T1.account_id=$account_id AND T1.id = T2.team_id AND T2.turniergruppe_id=$turniergruppe_id");
|
||||
@@ -36,6 +36,8 @@
|
||||
}
|
||||
|
||||
$toEcho = $resultCount;
|
||||
$abfrage ="DELETE FROM team_turniergruppe WHERE team_id = $deleteThisteamID AND turniergruppe_id = $turniergruppe_id;";
|
||||
mysqli_query($link,$abfrage);
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user