I\'ve been able to get multiple details from this table, using the codes beneath the table...
I know the table looks odd, but that\'s the available data table from the cl
You are doing
if ($result = $db->query($query)) {
$finalScore1 = 0;
......
}
if ($result = $db->query($query)) {
$finalScore2 = 0;
.......
}
echo ($finalscore +$finalscore2);
Try to do:
$finalScore1 = 0;
if ($result = $db->query($query)) {
......
}
$finalScore2 = 0;
if ($result = $db->query($query)) {
.......
}
echo ($finalscore +$finalscore2);
You have also not defined, define on the top of all:
$place_map = ['first' => 1, 'second' => 0.8, 'third' => 0.4];
Hope these resolve you error, rest result as per data and code