01.
if
(
$count
== 1)
02.
{
03.
$strSQL
=
"UPDATE abstract SET "
;
04.
$strSQL
.=
"AbstractName1 = '$file_name' "
;
05.
$strSQL
.=
",TimeUpdate1 = new() "
;
06.
$strSQL
.=
",CouterAbstract ='$count' "
;
07.
$strSQL
.=
"WHERE ProjectId = '"
.
$_POST
[
"textcopyProjectId"
].
"' "
;
08.
$objQuery
= mysql_query(
$strSQL
);
09.
10.
if
(
$objQuery
!=
""
){
11.
header(
'location: abstract.php'
);
12.
}
13.
}
14.
elseif
{
$count
== 2)
15.
{
16.
$strSQL
=
"UPDATE abstract SET "
;
17.
$strSQL
.=
"AbstractName2 = '$file_name' "
;
18.
$strSQL
.=
",TimeUpdate2 = new() "
;
19.
$strSQL
.=
",CouterAbstract ='$count' "
;
20.
$strSQL
.=
"WHERE ProjectId = '"
.
$_POST
[
"textcopyProjectId"
].
"' "
;
21.
$objQuery
= mysql_query(
$strSQL
);
22.
23.
if
(
$objQuery
!=
""
)
24.
{
25.
header(
'location: abstract.php'
);
26.
}
27.
}