I get the following error:
ERROR: relation "public.test" does not exist LINE 1: INSERT INTO public.Test(data33) VALUES('aabbcc') ^
This is my code:
<?php
include("connect.php");
date_default_timezone_set('America/Mexico_City');
// Then call the date functions
$date = date('Y-m-d H:i:s');
$query = "INSERT INTO public.Test(data33) VALUES('aabbcc')";
//$result = pg_query_params ( $db_conn,$query);
if (!pg_connection_busy($db_conn)) {
pg_send_query($db_conn, $query);
}
$res1 = pg_get_result($db_conn);
echo pg_result_error($res1);
pg_close($db_conn);
?>
Anyone know which is the problem?