摘要: HTML代码 <!DOCTYPE HTML><html><head><script type="text/javascript" src="../jQuery v2.2.0.js"></script><script type="text/javascript"> $(function(){ //按钮 阅读全文
posted @ 2019-09-20 10:46 2538 阅读(132) 评论(0) 推荐(0)
摘要: <?php $up=new Upload();$up->uploadFile('fm'); var_dump($up->errorNumber);var_dump($up->errorInfo); class Upload{ /// 文件上传保存路径 ////这里需要创建个文件夹,appserv下的 阅读全文
posted @ 2019-09-18 17:24 2538 阅读(222) 评论(0) 推荐(0)
摘要: <?php $page=new Page(5,60);var_dump($page->allUrl()); class Page{ ///每页显示多少条数据 protected $number; ///一共有多少条数据 protected $totalCount; ///当前页 protected 阅读全文
posted @ 2019-09-18 17:24 2538 阅读(214) 评论(0) 推荐(0)
摘要: <?php//// 验证码代码 $code = new Code();$code->outImage(); class Code { ///验证码个数 protected $number; ///验证码类型 protected $codeType; ///图形宽度 protected $width; 阅读全文
posted @ 2019-09-18 17:22 2538 阅读(1107) 评论(0) 推荐(0)
摘要: <?php $image=new Image();/// $image->water('0001.png','0002.png',9);//// 图片太大缩放代码用不了$image->suofang('0001.png',300,300);class Image{ /// 路径 protected 阅读全文
posted @ 2019-09-18 17:21 2538 阅读(253) 评论(0) 推荐(0)
摘要: MySQL中的mysqli模糊查询 <?php$content='3';$mysqli = new MYSQLI( 'localhost', 'root', '12345678', 'ceshi', 3306 ); //实例化mysqli$query="select * from dunling_c 阅读全文
posted @ 2019-09-18 10:34 2538 阅读(607) 评论(0) 推荐(0)
摘要: sqlsrv: $UploaderID = strval( $_GET[ 'UploaderID' ] ); ///防止参数乱码$UploaderID = iconv( "UTF-8", "GB2312//IGNORE", $UploaderID ); ////sql语句 $sql = "SELEC 阅读全文
posted @ 2019-09-18 09:16 2538 阅读(559) 评论(0) 推荐(0)
摘要: /*单独查询用户表, 分页,显示资源数和点赞数 */ DECLARE @count INT,@pageindex INT,@count1 INT SET @count = 6 SET @pageindex = 0 SET @count1 = 3SELECTtop ( @count ) UserAcc 阅读全文
posted @ 2019-09-15 15:07 2538 阅读(425) 评论(0) 推荐(0)
摘要: <?php /////php操作pdo实现查询 header( "Content-type: text/html; charset=utf-8" );$dbms = 'mysql';$user = 'root';$pwd = '12345678';$dbName = 'ceshi';$host = 阅读全文
posted @ 2019-09-04 14:22 2538 阅读(5307) 评论(0) 推荐(0)
摘要: <?php ////判断数据库是否连接成功 $connection = mysqli_connect('localhost', 'root', '12345678', 'ceshi', 3306 );if ( $connection ) { echo "数据库连接成功"."<br>";}else { 阅读全文
posted @ 2019-08-30 14:09 2538 阅读(264) 评论(0) 推荐(0)