hello everyone.i need a login script. I know there are much on google but they dont fit to my code.
So my html form :
it should be done with mysql. it should update columns lastlogin and online. online is 1 and lastlogin is current time. my mysql details are
localhost
root
no password
anneyemegi is dbname.
So my html form :
HTML:
<div class="container">
<form class="form-signin form-group"action="" method="post">
<h2 class="form-signin-heading">Lütfen Giriş Yapın</h2>
<label for="inputEmail" class="sr-only">Email address</label>
<input type="text" id="ad" class="form-control" placeholder="Kullanıcı Adı" autofocus name='ad'> <br>
<label for="inputPassword" class="sr-only" name="sifre">Şifre</label>
<input type="password" id="sifre" class="form-control" placeholder="Şifre">
<button class="btn btn-lg btn-primary btn-block" type="submit">Giriş</button>
</form>
</div><?php } ?> <!-- /container -->
</html>
localhost
root
no password
anneyemegi is dbname.