2017年12月25日
摘要: //在登陆后台页面 $_POST["code"]; if ($_POST["code"]==$_SESSION["authcode"]) { }else{ echo "<script>alert('验证码错误');location.href='login1.php';</script>"; } 阅读全文
posted @ 2017-12-25 08:24 PHP`reader 阅读(119) 评论(0) 推荐(1) 编辑
  2017年12月22日
摘要: <?php //设置session,必须处于脚本最顶部 session_start(); $image = imagecreatetruecolor(100, 30); //1>设置验证码图片大小的函数 //设置验证码颜色 imagecolorallocate(int im, int red, in 阅读全文
posted @ 2017-12-22 11:09 PHP`reader 阅读(102) 评论(0) 推荐(0) 编辑
摘要: header("Content-type:image/jpg"); //header头(固定的)$i=imagecreate(100,100); //创建画布$color=imagecolorallocate($i,255,23,140); //添加背景颜色 $text=imegecolorallo 阅读全文
posted @ 2017-12-22 11:07 PHP`reader 阅读(96) 评论(0) 推荐(0) 编辑
  2017年12月12日
摘要: create database 数据库名; //添加数据库 alter database 数据库名; //修改数据库 drop database 数据库名; //删除数据库 阅读全文
posted @ 2017-12-12 16:00 PHP`reader 阅读(1496) 评论(0) 推荐(0) 编辑
摘要: winver 检查Windows版本 wmimgmt.msc 打开windows管理体系结构 wscript windows脚本宿主设置 write 写字板 winmsd 系统信息 winchat XP自带局域网聊天 mem.exe 显示内存使用情况 Msconfig.exe 系统配置实用程序 mp 阅读全文
posted @ 2017-12-12 15:05 PHP`reader 阅读(142) 评论(0) 推荐(0) 编辑
  2017年11月30日
摘要: mysql -h127.0.0.1 -uroot -p //链接数据库 show databases; //查找所有数据库 use class1; //选择数据库class1 select * from user; //查看数据库数据 describe user; //查看user表字段名 阅读全文
posted @ 2017-11-30 11:29 PHP`reader 阅读(250) 评论(0) 推荐(0) 编辑
摘要: use class1; create table user2( -> id int auto_increment primary key, -> name varchar(50) not null, -> password varchar(50) not null); describe user2; 阅读全文
posted @ 2017-11-30 11:24 PHP`reader 阅读(112) 评论(0) 推荐(0) 编辑
摘要: <input onclick="window.open('login.php')" type="submit" id="login" value="注册"> <script type="text/javascript">function jump{ window.open("login.php"); 阅读全文
posted @ 2017-11-30 09:37 PHP`reader 阅读(848) 评论(0) 推荐(0) 编辑
  2017年11月27日
摘要: <?phpheader( 'Content-Type:text/html;charset=utf-8 '); include_once("conn/conn.php"); $id=$_GET["id"]; $sql='delete from user where id='.$id; $r=mysql 阅读全文
posted @ 2017-11-27 16:40 PHP`reader 阅读(142) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html><html><head><script type="text/javascript" src="js/jquery-1.11.3.min.js"></script></head><style type="text/css">table.imagetable { font 阅读全文
posted @ 2017-11-27 16:39 PHP`reader 阅读(146) 评论(0) 推荐(0) 编辑