Answer the question
In order to leave comments, you need to log in
How to populate a table from an array?
Hi all!
I have a table table with fields id, answered, approved.
Is it possible to update the table at the Postgres level if the input (from backend, PHP) is a multidimensional array of the form:
array(
0 => array(
"id" => 24
"answered" => true
"approved" => true
),
1 => array(
"id" => 25
"answered" => true
"approved" => false
)
);
Of course with a key-value relationship
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question