摘要:
//在登陆后台页面 $_POST["code"]; if ($_POST["code"]==$_SESSION["authcode"]) { }else{ echo "<script>alert('验证码错误');location.href='login1.php';</script>"; } 阅读全文
摘要:
<?php //设置session,必须处于脚本最顶部 session_start(); $image = imagecreatetruecolor(100, 30); //1>设置验证码图片大小的函数 //设置验证码颜色 imagecolorallocate(int im, int red, in 阅读全文
摘要:
header("Content-type:image/jpg"); //header头(固定的)$i=imagecreate(100,100); //创建画布$color=imagecolorallocate($i,255,23,140); //添加背景颜色 $text=imegecolorallo 阅读全文
摘要:
create database 数据库名; //添加数据库 alter database 数据库名; //修改数据库 drop database 数据库名; //删除数据库 阅读全文
摘要:
winver 检查Windows版本 wmimgmt.msc 打开windows管理体系结构 wscript windows脚本宿主设置 write 写字板 winmsd 系统信息 winchat XP自带局域网聊天 mem.exe 显示内存使用情况 Msconfig.exe 系统配置实用程序 mp 阅读全文
摘要:
mysql -h127.0.0.1 -uroot -p //链接数据库 show databases; //查找所有数据库 use class1; //选择数据库class1 select * from user; //查看数据库数据 describe user; //查看user表字段名 阅读全文
摘要:
use class1; create table user2( -> id int auto_increment primary key, -> name varchar(50) not null, -> password varchar(50) not null); describe user2; 阅读全文
摘要:
<input onclick="window.open('login.php')" type="submit" id="login" value="注册"> <script type="text/javascript">function jump{ window.open("login.php"); 阅读全文
摘要:
<?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 阅读全文
摘要:
<!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 阅读全文