From 080dea366e57db032e1928019f7ea599f11dabea Mon Sep 17 00:00:00 2001 From: emkael Date: Sun, 20 Jan 2019 13:20:52 +0100 Subject: Detailed output structure --- http/pkle2018-test.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'http/pkle2018-test.php') 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 = ['Miejsce   PKL   ']; 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('' + place + '' + response[place] + ''); + 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('' + place + '' + response.points[place] + ''); } - pklHTML.push('SUMA PKL' + response['sum'] + ''); + pklHTML.push('SUMA PKL' + response.sum + ''); document.getElementById('outsql').innerHTML = sqlPary.join("\n"); document.getElementById('outsql2').innerHTML = sqlTeamy.join("\n"); document.getElementById("pkltable").innerHTML = pklHTML.join(""); -- cgit v1.2.3