G
G
Guzh2017-07-04 21:18:13
PHP
Guzh, 2017-07-04 21:18:13

How to insert date from php to postgresql?

There is a query (pg_query) INSERT to insert a date into the table (timestamp with time zone). How to insert a date? Now I'm getting time zone not recognized error when querying pg_query($dbconn, "INSERT INTO \"Cars\" (id_car, id_sell, date) VALUES (" . $car . ", ". $sell . ", '" . $date . "')");

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question