Hello!
Is it possible to add the some records to a database at once using one Save Data action?
I have the multidimensional array (returned by code of PHP action), which used as data source in Save Data action [pre] $results = array(array ('field_id' => 4, 'item_id' => $art_id, 'value' => $med1),
array('field_id' => 5, 'item_id' => $art_id, 'value' => $med2),
array('field_id' => 6, 'item_id' => $art_id, 'value' => $med3),
array('field_id' => 7, 'item_id' => $art_id, 'value' => $med4),
array('field_id' => 8, 'item_id' => $art_id, 'value' => $medip) );[/pre]The field "Write action" value (in Save Data) is "Insert - duplicate key update".[br]On submit event i get that error "1054Unknown column '0' in 'field list'.[br]What can i do with it?[br][br]Many many thanks for answer
Is it possible to add the some records to a database at once using one Save Data action?
I have the multidimensional array (returned by code of PHP action), which used as data source in Save Data action [pre] $results = array(array ('field_id' => 4, 'item_id' => $art_id, 'value' => $med1),
array('field_id' => 5, 'item_id' => $art_id, 'value' => $med2),
array('field_id' => 6, 'item_id' => $art_id, 'value' => $med3),
array('field_id' => 7, 'item_id' => $art_id, 'value' => $med4),
array('field_id' => 8, 'item_id' => $art_id, 'value' => $medip) );[/pre]The field "Write action" value (in Save Data) is "Insert - duplicate key update".[br]On submit event i get that error "1054Unknown column '0' in 'field list'.[br]What can i do with it?[br][br]Many many thanks for answer