<!DOCTYPE HTML>
<!--
	Spatial by TEMPLATED
	templated.co @templatedco
	Released for free under the Creative Commons Attribution 3.0 license (templated.co/license)
-->
<html>
<head>
	<title>HATSU HAIR</title>
	<meta charset="utf-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1" />
	<link rel="stylesheet" href="assets/css/main.css" />
</head>
<body class="landing">




	<!-- Header -->
		<header id="header" class="alt">
			<h1><strong><a href="picture.php" class="button special"><font >HATSU</font></a></strong></h1>
			<nav id="nav">
				<ul>
					<li><a href="index.php"><font color="#6b770d">Home</font></a></li>
					<li><a href="picture.php"><font color="#6b770d">Picture</font></a></li>
					<li><a href="register.php"><font color="#6b770d">Register</font></a></li>
					<li><a href="booking.php"><font color="#6b770d">Booking</font></a></li>
				</ul>
			</nav>
<div class="">


</div>
		</header>


		<a href="#menu" class="navPanelToggle"><span class="fa fa-bars"></span></a>

	<!-- Banner -->


		<!-- One -->
			<section id="one" class="wrapper style1">
				<div class="container 75%">
					<div class="row 200%">
						<div class="6u 12u$(medium)">
							<center>
							<header class="major">
								<h2>HATSU HAIR</h2>
									<div class="image rounded"><img width="300" src="images/pic08.jpg" alt="" /></div>
							<p>hatsu hair Salon & Barber</p>

							</header>
						</center>
						</div>

						<form name="form1" method="post" action="booking.php">Login<br>
							<?php
							include_once('connect.php');
							//if (isset($_POST['submit'])) {
								// code...
							@ini_set('display_errors', '0');
							$username=  $_POST['txtUsername'];
							$password= $_POST['txtPassword'];



							//$password= $conn->real_escape_strin($_POST['txtPassword']);
							//$sql = "SELECT * FROM `member` WHERE `username` = '".$username."' AND `passwoed` = '".$password."'";
							$sql = "SELECT * FROM `member_` WHERE `username` = '".$username."' AND `password` = '".$password."'";
							$result = $conn->query($sql);
							//echo print_r($result);
							if ($result->num_rows > 0)
							{
								header("location:booking_db.php");
							}else {
								if ($username) {
									echo "<font color=\"red\">No user account</font>";
								}
								}
							//}


							?>



						<table border="1" style="width: 300px">
						<tbody>
						<tr><td> &nbsp;Username</td><td><input name="txtUsername" type="text" id="txtUsername"></td></tr>
						<tr><td> &nbsp;Password</td><td><input name="txtPassword" type="password" id="txtPassword"></td></tr></tbody>

						</table><br>
						<input type="submit" name="Submit" value="Login">

						</form>



						</div>
					</div>
				</div>
			</section>


		<!-- Two -->



		<footer id="footer">
			<div class="container">
				<ul class="icons">
					<li><a href="#" class="icon fa-facebook"></a></li>
					<li><a href="#" class="icon fa-twitter"></a></li>
					<li><a href="#" class="icon fa-instagram"></a></li>
				</ul>
				<ul class="copyright">
					<li>&copy; Untitled</li>
					<li>Design: <a href="http://templated.co">TEMPLATED</a></li>
					<li>Images: <a href="http://unsplash.com">Unsplash</a></li>
				</ul>
			</div>
		</footer>

	<!-- Scripts -->
		<script src="assets/js/jquery.min.js"></script>
		<script src="assets/js/skel.min.js"></script>
		<script src="assets/js/util.js"></script>
		<script src="assets/js/main.js"></script>

</body>
</html>
