Hi all, can any of you wizards help me with a question. I am trying to make a pub quz scoreboard and i am a bit stuck totalling up the round scores. I have a table that stores ‘teamid’, ‘teamname’, and then their round scores ‘round01’, ‘round02’…
I can pull all of this data out of the database and format as an html table but i’m stuck on getting their total score. I want it to be automatically generated from their round scores and dont want to have to input it manually.
Here is my code so far
[php] $query = “SELECT * from scoreboard ORDER BY teamid DESC”;
$data = mysqli_query($dbc, $query);
echo ‘
Team Name | 1 | 2 | 3 | Total |
---|
[/php]
i know
[php]
is wrong but hopefully you get what i mean.
any help would be greatly appreciated.
Darren