$fromarray = array("id" => "", "date" => "2008-04-11", "\"to\"" => $to, "debit" => "$amount" ); $frominsert = pg_insert($dbconn, $fromaccount, $fromarray); if ($frominsert) { echo "POST data is successfully logged\n"; } else { echo "User must have sent wrong inputs\n"; } 2008-04-12 10:09:55 EDT WARNING: nonstandard use of escape in a string literal at character 31 2008-04-12 10:09:55 EDT HINT: Use the escape string syntax for escapes, e.g., E'\r\n'. 2008-04-12 10:09:55 EDT WARNING: nonstandard use of escape in a string literal at character 84 2008-04-12 10:09:55 EDT HINT: Use the escape string syntax for escapes, e.g., E'\r\n'. 2008-04-12 10:09:55 EDT WARNING: nonstandard use of \\ in a string literal at character 355 2008-04-12 10:09:55 EDT HINT: Use the escape string syntax for backslashes, e.g., E'\\'.