01.
<?php
02.
03.
$Cus_ID
=
$_POST
[
'Cus_ID'
];
04.
$Cloth
=
$_POST
[
'Cloth'
];
05.
$Detail
=
$_POST
[
'Detail'
];
06.
07.
08.
09.
10.
mysql_connect(
"localhost"
,
"root"
,
"root"
);
11.
mysql_select_db(
"Laundry"
);
12.
mysql_query(
"SET NAMES tis620"
);
13.
14.
$sqlAdd
=
"INSERT INTO blame (Blame_ID, Cus_ID, Cloth, Detail,) VALUES ('', '$Cus_ID', '$Cloth', '$Detail')"
;
15.
mysql_query(
$sqlAdd
)
or
die
(
"Query failed ($query) - "
. mysql_error());
16.
17.
if
(
$sqlAdd
)
18.
{
19.
echo
$sqlAdd
;
20.
header(
"location: EmpChekBlame.php"
);
21.
}
22.
mysql_close();
23.
?>