<?php include_once conn.php";?>
<?php
$laiu=$_POST["shangu"];
$laim=$_POST["shangm"];
$laim=md5($laim);//写数据库时候也用MD5了
$sql=mysql_query("select from biao where username='$laiu' and password='$laim'");
if($sql==0){
echo "o,shit";
exit();
}else{
echo "登陆成功了";
}
?>
-------------------------
怎么老是不能登陆! 闷!
<?php
$laiu=$_POST["shangu"];
$laim=$_POST["shangm"];
$laim=md5($laim);//写数据库时候也用MD5了
$sql=mysql_query("select from biao where username='$laiu' and password='$laim'");
if($sql==0){
echo "o,shit";
exit();
}else{
echo "登陆成功了";
}
?>
-------------------------
怎么老是不能登陆! 闷!
"select from biao where username=
随便输入什么都登陆成功! 汗
<?php include_once conn.php";?>
<?php
$laiu=$_POST["shangu"];
$laim=$_POST["shangm"];
$laim=md5($laim);//写数据库时候也用MD5了
$sql=mysql_query("select * from biao where username='$laiu' and password='$laim'");
if($sql){
echo "登陆成功了";
}else{
echo "o,shit";
exit();
}
?>这样呢。