Skip to content

Adding a team fails due to lack of SCORE and PENALTY #11

@kernel-sanders

Description

@kernel-sanders

$team_scoreboard_add = mysqli_query($connection, "INSERT INTO scoreboard (TEAM, TEAMNAME) VALUES ('$team_create_count','$team_create')");

ctf_marker/admin.php

Lines 920 to 926 in 5135484

$sql_create_score = "CREATE TABLE `scoreboard` (
`ID` int(2) NOT NULL AUTO_INCREMENT PRIMARY KEY,
`TEAM` int(2) NOT NULL,
`TEAMNAME` varchar(15) NOT NULL,
`SCORE` double NOT NULL,
`PENALTY` double NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;";

Field 'SCORE' doesn't have a default value

Perhaps not every single field in all tables should be NOT NULL?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions