<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<?php
session_start();
$db=mysqli_connect("localhost","ani","123","anirudha");
if (isset($_POST['login'])){
$email=$_POST['email'];
$pword=$_POST['pass'];
//$s="SELECT * FROM register WHERE username='$email' AND password='$pword'";
$s = "INSERT INTO register (username, password)VALUES('$email', '$pword')";
$sq=mysqli_query($db,$s);
//$row_count=mysqli_num_rows($db,$sq);
//if ($row_count==1) {
echo "Login success";
header("location:home.php");
}
?>
<?php
// initializing variables
$errors = array();
// connect to the database
$db = mysqli_connect('localhost', 'ani', '123', 'anirudha');
// REGISTER USER
if (isset($_POST['registration'])) {
// receive all input values from the form
$username = mysqli_real_escape_string($db, $_POST['username']);
$password = mysqli_real_escape_string($db, $_POST['password']);
// form validation: ensure that the form is correctly filled ...