01.
<?php
02.
session_start();
03.
include
(
"db_connect.php"
);
04.
if
(!
$_SESSION
[
'USERNAME'
]){
05.
?>
06.
<script type=
"text/javascript"
>
07.
window.location=
"index.php"
;
08.
</script>
09.
<?php
10.
}
11.
12.
<html>
13.
<head>
14.
<meta http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
>
15.
<title></title>
16.
</head>
17.
<body>
18.
19.
$sql
=
"update tire_book SET pagecall = '1' WHERE id = '3794' "
;
20.
$conn
->query(
$sql
)
or
die
(
"<br>SQL Error: "
.
$sql
.
"<br>"
.
$conn
->error);
21.
22.
</body>