$_GET["text"], "cw" => $_GET["cw"], "iscwed" => !($_GET["cw"] === null || $_GET["cw"] === ""), "time" => date("Y-m-d H:i:sP"), "ispublic" => $_GET["public"] == 1, "isrespondedto" => False ); pg_insert($db, "data", $dataArray); header("Location: index.php?sent=1"); ?>