02-13-2008, 07:56 PM
|
#2 (permalink)
|
|
The Addict
Join Date: Dec 2007
Location: morocco
Posts: 221
Thanks: 19
|
ok here is the code
PHP Code:
$sql = "select * from `admin` where name='$_POST[name]' and pass='$_POST[pass]'";
$res=mysql_query($sql);
$count = mysql_num_rows($res);
if($count == 1){
header("Location: admin.php");
}else{
echo"<center><h2>The username or password are mistaken please check theme again<h2>";
}
__________________
|
|
|