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") {
|
||||
$totalUnresponded++;
|
||||
} else if ($i["ispublic"] === "f") {
|
||||
$totalPriv++;
|
||||
if ($i["isprivread" === "t"]) {
|
||||
$totalPrivRead++;
|
||||
} else {
|
||||
$totalPriv++;
|
||||
}
|
||||
} else {
|
||||
$totalRespondedPub++;
|
||||
|
|
|
@ -12,7 +12,8 @@ CREATE TABLE data (
|
|||
ispublic BOOLEAN NOT NULL,
|
||||
isrespondedto BOOLEAN NOT NULL,
|
||||
responsetext TEXT,
|
||||
responsetime TIMESTAMPTZ
|
||||
responsetime TIMESTAMPTZ,
|
||||
isprivread BOOLEAN NOT NULL
|
||||
);
|
||||
";
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue