摘要: <?php //设置session,必须处于脚本最顶部 session_start(); $image = imagecreatetruecolor(100, 30); //1>设置验证码图片大小的函数 createtrue真彩 清晰 //设置验证码颜色 imagecolorallocate(int 阅读全文
posted @ 2017-12-24 23:34 Kuangmo-code 阅读(771) 评论(0) 推荐(0) 编辑
摘要: <%@ page language="java" contentType="text/html; charset=GBK" pageEncoding="GBK"%> <%@ page import="java.sql.*" %><!DOCTYPE html PUBLIC "-//W3C//DTD H 阅读全文
posted @ 2017-12-12 15:02 Kuangmo-code 阅读(211) 评论(0) 推荐(0) 编辑
摘要: 说明:Statement stmt = con.createStatemen=(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY); 通用格式为:Statement stmt=con.createStatement(int ty 阅读全文
posted @ 2017-12-12 14:58 Kuangmo-code 阅读(196) 评论(0) 推荐(0) 编辑
摘要: <?php$host="localhost";$db_user="root"; //数据库用户$db_pass=""; //数据库密码$db_name=""; //数据库$timezone = "Asia/Shanghai";$link=mysqli_connect($host,$db_user,$ 阅读全文
posted @ 2017-11-17 14:42 Kuangmo-code 阅读(579) 评论(0) 推荐(0) 编辑