資源簡介
實現用戶注冊,登錄,以及管理員后臺管理
代碼片段和文件信息
require_once?(‘config.php‘);
?>
lns=“http://www.w3.org/1999/xhtml“>
ta?content=“text/html;?charset=utf-8“?/>
tle>php普通的登陸注冊小系統 tle>
nk?href=“style.css“?rel=“stylesheet“?type=“text/css“?/>
//判斷用戶權限
if($_SESSION[‘member‘]?!=?“admin“){
echo?“ript>alert(‘請進行登陸‘);location=‘login.php‘; ript>“;
}
//分頁顯示
$sql=“select?*?from?member?order?by?id?asc“;
$result=mysql_query($sql);
$total=mysql_num_rows($result);
$page=isset($_GET[‘page‘])?intval($_GET[‘page‘]):1;??
$info_num=2;?
$pagenum=ceil($total/$info_num);?
If($page>$pagenum?||?$page?==?0){
???????Echo?“Error?:?Can?Not?Found?The?page?.“;
???????Exit;
}
$offset=($page-1)*$info_num;?
$info=mysql_query(“select?*?from?member?order?by?id?desc?limit?$offset$info_num“);?
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????6253??2013-03-23?11:24??admin_index.php
?????文件????????454??2015-12-11?10:29??config.php
?????文件???????7094??2015-12-11?11:45??index.php
?????文件???????5396??2013-03-23?11:23??member.php
?????文件???????1774??2013-03-23?10:59??regi.sql
?????文件????????388??2013-03-16?15:50??st
-----------?---------??----------?-----??----
????????????????21359????????????????????6
- 上一篇:php 執行網絡任務個人版
- 下一篇:PHP 簡單MVC
評論
共有 條評論