adduser.php
新增用户
用户名
密码
性别
男 女
年龄
出生年月
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
年
1
2
3
4
5
6
7
8
9
10
11
12
月
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
日
爱好
个人简介
adddo.php
=1,则判断添加成功,否则失败
if($rows >= 1){
alert(添加成功);
href(userlistt.php);
}else{
alert(添加失败);
// href(adduser.php);
}
function alert($title){
echo ;
}
function href($url){
echo ;
}
?>
userlist.php
会员信息列表
id
用户名
密码
性别
年龄
出生年月
爱好
注册时间
最后登录时间
操作
delete.php
=1){
alert(删除成功);
}else{
alert(删除失败);
}
// 跳转到用户列表页面
href(userlistt.php);
function delete($id,$con){
$sql = delete from user where id='$id';
// 执行删除
mysql_query($sql,$con);
// 获取影响的行数
$rows = mysql_affected_rows();
// 返回影响行数
return $rows;
}
function alert($title){
echo ;
}
function href($url){
echo ;
}
?>
edituser.php
编辑用户
用户名
密码
性别
/> 男
/> 女
年龄
出生年月
>1980
>1981
>1982
>1983
>1984
>1985
>1986
>1987
>1988
>1989
>1990
年
>1
>2
>3
>4
>5
>6
>7
>8
>9
>10
>11
>12
月
>1
>2
>3
>4
>5
>6
>7
>8
>9
>10
>11
>12
>13
>14
>15
>16
>17
>18
>19
>20
>21
>22
>23
>24
>25
>26
>27
>28
>29
>30
>31
日
爱好
个人简介
editdo.php
=1,则判断添加成功,否则失败
if($rows >= 1)
{
alert(编辑成功);
href(userlistt.php);
}else{
alert(编辑失败);
// href(adduser.php);
}
function alert($title){
echo ;
}
function href($url){
echo ;
}
?>
detailuser.php
查看用户明细
用户id
用户名
密码
性别
年龄
出生年月
爱好
个人简介
返回用户列表
