Welcome Guest, Not a member yet? Register   Sign In
logging a structure
#6

You were right and thanks for your help. This was what finally worked.

$data = array(
'survey_compiler' => $email_key,
'task1' => $Arr[0]->Task_0,
'task1_percent' => $Arr[0]->Perc_time_0,
'task2' => $Arr[0]->Task_1,
'task2_percent' => $Arr[0]->Perc_time_1,
'task3' => $Arr[0]->Task_2,
'task3_percent' => $Arr[0]->Perc_time_2,
'task4' => $Arr[0]->Task_3,
'task4_percent' => $Arr[0]->Perc_time_3,
'task5' => $Arr[0]->Task_4,
'task5_percent' => $Arr[0]->Perc_time_4,
'task6' => $Arr[0]->Task_5,
'task6_percent' => $Arr[0]->Perc_time_5
);

$data2 = array(
'BC1' => $Arr[1]->BusComp_0,
'BC1_percent' => $Arr[1]->Perc_time2_0,
'BC2' => $Arr[1]->BusComp_1,
'BC2_percent' => $Arr[1]->Perc_time2_1,
'BC3' => $Arr[1]->BusComp_2,
'BC3_percent' => $Arr[1]->Perc_time2_2,
'BC4' => $Arr[1]->BusComp_3,
'BC4_percent' => $Arr[1]->Perc_time2_3,
'BC5' => $Arr[1]->BusComp_4,
'BC5_percent' => $Arr[1]->Perc_time2_4,
'BC6' => $Arr[1]->BusComp_5,
'BC6_percent' => $Arr[1]->Perc_time2_5
);
$this->db->insert('survey_tasks', $data);
$this->db->insert('survey_bc', $data2);
proof that an old dog can learn new tricks
Reply


Messages In This Thread
logging a structure - by richb201 - 07-22-2018, 12:13 AM
RE: logging a structure - by Pertti - 07-22-2018, 03:03 AM
RE: logging a structure - by richb201 - 07-22-2018, 10:07 AM
RE: logging a structure - by richb201 - 07-23-2018, 07:35 AM
RE: logging a structure - by Pertti - 07-23-2018, 08:03 AM
RE: logging a structure - by richb201 - 07-24-2018, 04:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB