function.inc.php
来自「聪明星企业wap网站系统 Version 1.0」· PHP 代码 · 共 23 行
PHP
23 行
<?
include("../db_connect.php");
// start session
session_start();
// convert username, password and checkcode from _POST or _SESSION
$_SESSION['username']=$username;
$_SESSION['password']=$password;
// query for a user/pass match
$result=mysql_query("select * from users
where username='" . $_SESSION['username'] . "' and password='" . $_SESSION['password'] . "'") or die("query failed!");
// retrieve number of rows resulted
$num=mysql_num_rows($result);
mysql_close($db);
if($num < 1){
echo "You are not authenticated. Please login.<br><br> ";
exit;
}
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?