Witam chce stworzyc system logowania, otoz stworzylem taki kod, ale gdy chce sie zalogowac to wyskakuje mi blad:
Warning: mysqli_query() expects at least 2 parameters, 1 given in /home/u148403917/public_html/login.php on line 14
Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given in /home/u148403917/public_html/login.php on line 15
zreszta to wszystko jest dostepne na stronie www.widemo.pl
Wrong email
<?php
session_start();
require('head.php')
?>
<body>
<div class="container">
<form class="login_form" action="login.php" method="post">
<h2 class="login_form_head">Please Log In</h2>
<input type="email" name="email" class="form-control" placeholder="Email address" required autofocus>
<label for="inputPassword" class="sr-only">Password</label>
<input type="password" name="password" class="form-control" placeholder="Password" required>
<button class="btn btn-lg btn-primary btn-block" id="button" type="submit">Log in</button>
</form>
<div style="text-align:center;">
If you don't have account yet <a style="text-align:center;" href="register_form.php"> SING IN </a> now for free
</div>
</div>
</body>
</html>