01.
02.
foreach
(
$send_toacc
as
$key
=>
$value
)
03.
echo
$date_toacc
[
$key
];
04.
echo
"<br>"
;
05.
echo
$send_toacc
[
$key
];
06.
echo
"<br>"
;
07.
if
(
$send_toacc
[
$key
]!=
""
){
08.
$db2
= mysql_pconnect(DB_SERVER2,USERNAME2,PASSWORD2);
09.
mysql_query(
"SET NAMES UTF8"
);
10.
$u_status_toacc
=
"update close_qc set status_send_acc='1',date_toacc='"
.
$date_toacc
[
$key
].
"' where idrepair_close_qc='"
.
$send_toacc
[
$key
].
"' "
;
11.
echo
"$u_status_toacc"
;
12.
echo
"<br>"
;
13.
14.
}
15.
}