- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
for($j = 0; $j < count($_REQUEST['option_question']); $j++)
{
$max_id = $db->max_field("tbl_task_option","option_question_id","1=1");
$max_id = $max_id+1;
$tbl_option_insert=array(
'task_id' => $_REQUEST['task_id'],
'subtask_id' => $subtask_id,
'option_question_id' => $max_id,
'option_question' => $_REQUEST['option_question'][$j],
'option_answer' => $_REQUEST['option_ans'][$j][0],
'option_insert_datetime' => date('Y-m-d H:i:s')
);
$task_option_id = $db->insert($tbl_option_insert,"tbl_task_option");
$i = $i + 1;
}