"INSERT INTO `codes` SET `DATE` = ?, `CODE` = ?"
$file = Array
(
'name' => $_FILES["photo_ar"]['name'][$i],
'size' => $_FILES["photo_ar"]['size'][$i],
'tmp_name' => $_FILES["photo_ar"]['tmp_name'][$i],
'type' => $_FILES["photo_ar"]['type'][$i]
);
$arFiles[] = array('VALUE' => $file, 'DESCRIPTION' => '');