$data = array( 'date_from' => $date_from, 'date_to' => $date_to, 'employee_id' => $EMP{employee_id} ); $dbh->insert('emp_bank', $data);