-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreaderfunctons.php
More file actions
82 lines (73 loc) · 1.77 KB
/
Copy pathreaderfunctons.php
File metadata and controls
82 lines (73 loc) · 1.77 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php session_start();
?>
<!DOCTYPE html>
<!-- Template by freewebsitetemplates.com -->
<html>
<head>
<meta charset="UTF-8" />
<title>Home - NYC Library</title>
<link rel="styleshee" type="text/css" href="style.css" />
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="ie6.css" />
<![endif]-->
<style type="text/css">
<!--
.style1 {font-size: 24px}
-->
</style>
</head>
<?php
$host="localhost";
$user="root";
$pass="";
$conn=mysql_connect($host,$user,$pass);
$db=mysql_select_db("elib");
$reader_id = $_REQUEST['reader_id'];
$_SESSION['reader_id'] = $reader_id;
//echo $_SESSION['reader_id'];
$cardno;
//echo $reader_id;
$sel="select * from reader";
$query=mysql_query($sel);
while($row=mysql_fetch_array($query))
{
$cardno = $row['reader_id'];
}
if($reader_id != $cardno)
{
header("location:wroungcard.php"); exit;
}
?>
<body style="background-color:lightblue">
<div id="page">
<div id="header">
<div id="section">
<div><a href="index.html"><img src="images/online lib.jpg" alt="Logo" width="379" height="58" /></a></div>
<p><span style="text-align:right">jlahoti@nyit.edu</br>+1551-998-7500</span>
</p></div>
<ul>
<li><a href="search.php">Search</a></li>
<li><a href="home.php">Quit</a></li>
</ul>
<div id="tagline">
<div>
<h2 style="text-align:center">Welcome to Library.</h2>
</div>
</div>
</div>
<body>
<p> </p>
<p> </p>
<br>
<div id="footer">
<div>
<p> </p>
<div id="connect"></div>
<div class="section">
<p></br></br></br></br></br></br>© Copyright Online Library - All Rights Reserved.</p>
</div>
</div>
</div>
</div>
</body>
</html>