'type_flow' => $node['name'],
'title' => $node['data']['title'],
'label' => $item['label'],
'type' => $item['type'],
'value' => $item['value'],
'table_id' => $node['id'],
]);

I need to implement this in codeigniter and if there is a comparison method, can you tell me of course I think I could manually try to extract fields from the database and compare but I think the code Не было бы полностью правильно < /p>
Если вам нужно больше данных, напишите в комментариях. < /p>
my try: < /p>
$db_conn = $this->model->where('type_flow', $item['field'])->where('table_id', $node['id'])->where('type_flow', 'conditions')->first() ? true : false;
if (!$db_conn) {
$this->db->table('context')->insert([
'type_flow' => $node['name'],
'title' => $node['data']['title'],
'label' => $item['field'],
'type' => $item['type'],
'value' => $item['value'],
'table_id' => $node['id'],
]);
}
Подробнее здесь: https://stackoverflow.com/questions/797 ... a-database
Мобильная версия