<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>Import CSV File into MySQL Database using PHP/MySQLi</title>
	<link rel="stylesheet" type="text/css" href="bootstrap/css/bootstrap.min.css">
</head>
<body>
<div class="container">
	<h1 class="page-header text-center">Import CSV File into MySQL</h1>
	<div class="row">
		<div class="col-sm-3">
			<h3>Import File Form</h3>
			<form method="POST" action="import.php" enctype="multipart/form-data">
				<div class="form-group">
					<label for="file">File:</label>
					<input type="file" id="file" name="file">
				</div>
				<button type="submit" name="import" class="btn btn-primary btn-sm">Import</button>
			</form>
			<?php
				session_start();
				if(isset($_SESSION['message'])){
					?>
					<div class="alert alert-info text-center" style="margin-top:20px;">
						<?php echo $_SESSION['message']; ?>
					</div>
					<?php
					unset($_SESSION['message']);
				}
			?>
		</div>
	</div>
</div>
</body>
</html>