成员主页:main.php
<?
session_start(); // 开始session
session_register("userregister");
$userregister=$username;
include "class/config.php";
$result = mysql_query("SELECT * FROM user where user='$username'",$db);
if (mysql_num_rows($result)==0){ //若返回列的数目为0,说明无此资料
echo "无此用户!";
exit;}
$userpsw=strtoupper(trim($userpsw));
$password=trim(mysql_result($result,0,'psw'));
$password=strtoupper($password);//取得密码,转换成大写
$userpsw=strtoupper($userpsw);
if (!($userpsw==$password)){
echo "密码错误!";
mysql_close($db);
exit;
}
$name=mysql_result($result,0,"name");
$count=mysql_result($result,0,"count")+1;//成员计数器加1
mysql_query("UPDATE user SET count=$count where user='$username'",$db);
?>
![]() |
北京时间 echo date("Y年m月d日");?> |
|
![]()
|
相关文章:
PHP
·
发表于 6年以前
·
阅读量:9559
Shell
·
发表于 6年以前
·
阅读量:3753
Shell
·
发表于 1年以前
·
阅读量:3605
JAVA
·
发表于 6年以前
·
阅读量:3445
JAVA
·
发表于 6年以前
·
阅读量:3442
JavaScript
·
发表于 4年以前
·
阅读量:3396
JAVA
·
发表于 5年以前
·
阅读量:3376
Python
·
发表于 5年以前
·
阅读量:3352
JAVA
·
发表于 5年以前
·
阅读量:3330
Python
·
发表于 5年以前
·
阅读量:3257
JAVA
·
发表于 6年以前
·
阅读量:3229
PHP
·
发表于 6年以前
·
阅读量:3182
JAVA
·
发表于 6年以前
·
阅读量:3150
Shell
·
发表于 6年以前
·
阅读量:2910
PHP
·
发表于 6年以前
·
阅读量:2907
PHP
·
发表于 6年以前
·
阅读量:2847
PHP
·
发表于 6年以前
·
阅读量:2818
PHP
·
发表于 6年以前
·
阅读量:2798
JAVA
·
发表于 6年以前
·
阅读量:2798
Python
·
发表于 6年以前
·
阅读量:2794
最新文章
获取php时间戳
4年以前
·
1220 次阅读
php获取tempfile路径
4年以前
·
1322 次阅读
php 1,1,2,3,5,8,13,21,34...求第30位的数是多少?
4年以前
·
1417 次阅读
PHP执行shell
5年以前
·
1422 次阅读
PHP获取HTTP body内容
5年以前
·
1695 次阅读
php读取目录下的所有文件
5年以前
·
1507 次阅读
php判断是爬虫在访问还是用户浏览器在访问
5年以前
·
1397 次阅读
PHP通过UserAgent识别爬虫
5年以前
·
1559 次阅读
PHP使用curl发起post请求
5年以前
·
1517 次阅读
PHP版HelloWorld
5年以前
·
1296 次阅读
最受欢迎文章
PHP分页显示制作详细讲解
6年以前
·
9559 次阅读
PHP自定义函数获取搜索引擎来源关键字的方法
6年以前
·
3182 次阅读
在Zeus Web Server中安装PHP语言支持
6年以前
·
2907 次阅读
Yii2汉字转拼音类的实例代码
6年以前
·
2847 次阅读
再谈PHP中单双引号的区别详解
6年以前
·
2818 次阅读
php封装的page分页类完整实例
6年以前
·
2798 次阅读
PHP命名空间namespace用法实例分析
6年以前
·
2668 次阅读
php数组合并array_merge()函数使用注意事项
6年以前
·
2623 次阅读
php+ajax+json 详解及实例代码
6年以前
·
2623 次阅读
PHP设计模式之工厂模式与单例模式
6年以前
·
2613 次阅读
|