I want to insert current server time to the postgres database. Data type is timestamp. When I insert the date, got an error saying
Warning: pg_query() [function.pg-query]: Query failed: ERROR: invalid input syntax for type timestamp: "1246960321 " in C:\Program Files\xampp\htd ocs\xxx\xxx\xxx .php on line 57
Error in SQL query: ERROR: invalid input syntax for type timestamp: "1246960321 "
I take the time as follows.
Please help me..
Warning: pg_query() [function.pg-query]: Query failed: ERROR: invalid input syntax for type timestamp: "1246960321 " in C:\Program Files\xampp\htd ocs\xxx\xxx\xxx .php on line 57
Error in SQL query: ERROR: invalid input syntax for type timestamp: "1246960321 "
I take the time as follows.
Code:
$today = strtotime("now");
Comment