diff options
Diffstat (limited to 'http/pkle2018-test.php')
-rw-r--r-- | http/pkle2018-test.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/http/pkle2018-test.php b/http/pkle2018-test.php index 3826d3a..9b056c1 100644 --- a/http/pkle2018-test.php +++ b/http/pkle2018-test.php @@ -68,11 +68,11 @@ function display() { var sqlTeamy = ['UPDATE `addons` SET `mastr` = 0;']; var pklHTML = ['<tr><td class="t">Miejsce</td><td class="t"> PKL </td></tr>']; for (var place = 1; place <= parseInt(document.getElementsByName('iuc')[0].value); place++) { - sqlPary.push('UPDATE `dodatki` SET `pkl` = ' + response[place] + ' WHERE `miejsce` = ' + place + ';'); - sqlTeamy.push('UPDATE `addons` SET `mastr` = ' + response[place] + ' WHERE `place` = ' + place + ';'); - pklHTML.push('<tr><td class="t">' + place + '</td><td class="t">' + response[place] + '</td></tr>'); + sqlPary.push('UPDATE `dodatki` SET `pkl` = ' + response.points[place] + ' WHERE `miejsce` = ' + place + ';'); + sqlTeamy.push('UPDATE `addons` SET `mastr` = ' + response.points[place] + ' WHERE `place` = ' + place + ';'); + pklHTML.push('<tr><td class="t">' + place + '</td><td class="t">' + response.points[place] + '</td></tr>'); } - pklHTML.push('<tr><td class="p">SUMA PKL</td><td class="t">' + response['sum'] + '</td></tr>'); + pklHTML.push('<tr><td class="p">SUMA PKL</td><td class="t">' + response.sum + '</td></tr>'); document.getElementById('outsql').innerHTML = sqlPary.join("\n"); document.getElementById('outsql2').innerHTML = sqlTeamy.join("\n"); document.getElementById("pkltable").innerHTML = pklHTML.join(""); |