I want to disable the user for 6hrs when he inputs the wrong password 3 times
i'm using mysql...
please help me...
and this is my usercheck.php
<?php
session_start();
include("config.php");
if (isset($_POST['sub'])) {
$myusername = $_POST['txtusername'];
$mypassword = $_POST['txtpassword'];
$name = stripslashes($myusername);
$password = stripslashes($mypassword);
$myusername = mysql_real_escape_string($name);
$mypassword = mysql_real_escape_string($password);
$sql = "SELECT * FROM $tbl_name WHERE MUSE_NAME='$myusername' and MUSE_PWD='$mypassword'";
$result = mysql_query($sql);
$count = mysql_num_rows($result);
if ($count == 1) {
$_SESSION['login'] = "1";
header("location:Main_Dashboard.php");
}
else
{
$_SESSION['error'] = "Incorrect username or password";
header("location:Main_Login.php");
}
}
?>