finally done
This commit is contained in:
parent
a5b8880393
commit
e2e1f1267f
2 changed files with 4 additions and 2 deletions
|
@ -16,9 +16,10 @@ foreach (array_reverse($rows) as $i) {
|
||||||
if ($i["isrespondedto"] === "f" && $i["ispublic"] === "t") {
|
if ($i["isrespondedto"] === "f" && $i["ispublic"] === "t") {
|
||||||
$totalUnresponded++;
|
$totalUnresponded++;
|
||||||
} else if ($i["ispublic"] === "f") {
|
} else if ($i["ispublic"] === "f") {
|
||||||
$totalPriv++;
|
|
||||||
if ($i["isprivread" === "t"]) {
|
if ($i["isprivread" === "t"]) {
|
||||||
$totalPrivRead++;
|
$totalPrivRead++;
|
||||||
|
} else {
|
||||||
|
$totalPriv++;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$totalRespondedPub++;
|
$totalRespondedPub++;
|
||||||
|
|
|
@ -12,7 +12,8 @@ CREATE TABLE data (
|
||||||
ispublic BOOLEAN NOT NULL,
|
ispublic BOOLEAN NOT NULL,
|
||||||
isrespondedto BOOLEAN NOT NULL,
|
isrespondedto BOOLEAN NOT NULL,
|
||||||
responsetext TEXT,
|
responsetext TEXT,
|
||||||
responsetime TIMESTAMPTZ
|
responsetime TIMESTAMPTZ,
|
||||||
|
isprivread BOOLEAN NOT NULL
|
||||||
);
|
);
|
||||||
";
|
";
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue