?? login.php
字號:
<?
require ("include/config.inc.php");
@$link=mysql_connect($host,$dbuser,$dbpwd) or die('無法連接服務器!');
@mysql_select_db($dbname) or die ('無法連接數據庫!');
$u="select name,password from user where name='".$uname."' and password='".$upwd."'";
@$result=mysql_query($u,$link);
$num=mysql_num_rows($result);
if ($num)
{
//$row=mysql_fetch_array($result);
header("location:pass.php");
}
else
{
echo "您不是注冊用戶,無權查看此頁!";
header("location:fail.php");
}
?>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -