View Single Post
Old 02-13-2008, 07:56 PM   #2 (permalink)
webtuto
The Addict
 
webtuto's Avatar
 
Join Date: Dec 2007
Location: morocco
Posts: 221
Thanks: 19
webtuto is on a distinguished road
Default

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>";

__________________
Send a message via MSN to webtuto Send a message via Yahoo to webtuto Send a message via Skype™ to webtuto
webtuto is offline  
Reply With Quote
The Following User Says Thank You to webtuto For This Useful Post:
StevenF (02-13-2008)