Änderungen Dienstag

This commit is contained in:
aschwarz
2023-03-21 14:17:05 +01:00
parent 5d8b00feba
commit b9e9f89a3d
42 changed files with 14307 additions and 4634 deletions

View File

@ -66,10 +66,9 @@ if ($action == '') {
unset($inner1);
# Wie viele User haben Frage 1 beantwortet
$result_anz_userfrage = $db->query("SELECT count(distinct ufid) Anz
$result_anz_userfrage = $db->query("SELECT count(distinct concat(ip,session)) Anz
FROM jumi_umfragen_ergebnisse
WHERE ufid = $row[ufid]
GROUP BY ip, session
");
$row_anz_userfrage = $result_anz_userfrage->fetch_array();
@ -84,6 +83,7 @@ if ($action == '') {
$query2 = "SELECT uaid, antwort
FROM jumi_umfragen_antworten
WHERE ufid=$row[ufid]
ORDER BY userorder ASC, uaid ASC
";
@ -99,7 +99,7 @@ if ($action == '') {
$row_cur_antw = $result_cur_antw->fetch_array();
if($row_anz_antworten['Anz'] != '0'){
$prozent = 100/$row_anz_antworten['Anz']*$row_cur_antw['Anz'];
$prozent = round(100/$row_anz_antworten['Anz']*$row_cur_antw['Anz'],0);
}else{
$prozent = 0;
}