01.
<html>
02.
<head>
03.
<title></title>
04.
</head>
05.
<body>
06.
<?
07.
08.
$objConnect
= mysql_connect(
"localhost"
,
"root"
,
"asset"
)
or
die
(
"Error Connect to Database"
);
09.
$objDB
= mysql_select_db(
"thanes"
);
10.
11.
12.
13.
$strSQL
=
"INSERT INTO job "
;
14.
$strSQL
.=
"(date,prefixname,name,birth,age,position,salary,phone,email,address,resume) "
;
15.
$strSQL
.=
"VALUES ('"
.
$_POST
[
"txtdate2"
].
"','"
.
$_POST
[
"prefixname"
].
"','"
.
$_POST
[
"txtname"
].
"','"
.
$_POST
[
"txtdate1"
].
"','"
.
$_POST
[
"txtage"
].
"','"
.
$_POST
[
"position"
].
"','"
.
$_POST
[
"txtsalary"
].
"','"
.
$_POST
[
"txtphone"
].
"','"
.
$_POST
[
"txtemail"
].
"','"
.
$_POST
[
"txtaddress"
].
"','"
.
$_POST
[
"filUpload"
].
"')"
;
16.
$objQuery
= mysql_query(
$strSQL
);
17.
18.
19.
20.
echo
"send success"
;
21.
echo
"<meta http-equiv=\"REFRESH\" content =\"1; URL=index.php\"> "
;
22.
23.
24.
mysql_close(
$objConnect
);
25.
26.
?>
27.
28.
29.
30.
</body>
31.
</html>