資源簡(jiǎn)介
實(shí)現(xiàn)用戶注冊(cè),登錄,以及管理員后臺(tái)管理
代碼片段和文件信息
require_once?(‘config.php‘);
?>
lns=“http://www.w3.org/1999/xhtml“>
ta?content=“text/html;?charset=utf-8“?/>
tle>php普通的登陸注冊(cè)小系統(tǒng) tle>
nk?href=“style.css“?rel=“stylesheet“?type=“text/css“?/>
//判斷用戶權(quán)限
if($_SESSION[‘member‘]?!=?“admin“){
echo?“ript>alert(‘請(qǐng)進(jìn)行登陸‘);location=‘login.php‘; ript>“;
}
//分頁(yè)顯示
$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“);?
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件???????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
評(píng)論
共有 條評(píng)論