prepare('DELETE FROM team WHERE uid = :uid AND id = :id;'); $statement->bindValue(':uid', $player, SQLITE3_INTEGER); $statement->bindValue(':id', $id, SQLITE3_INTEGER); $statement->execute(); $statement = $db->prepare('DELETE FROM team_unit WHERE team = :id;'); $statement->bindValue(':uid', $player, SQLITE3_INTEGER); $statement->bindValue(':id', $id, SQLITE3_INTEGER); $statement->execute(); return 0; } ?>