上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页
摘要: http://www.cnblogs.com/kissdodog/archive/2012/12/15/2819025.html 阅读全文
posted @ 2016-01-06 11:45 tiandi2050 阅读(131) 评论(0) 推荐(0) 编辑
摘要: PHP冒泡法//PHP冒泡 从小到大function maopao(&$arr){ if(!empty($arr)){ for($i=0;$i$arr[$j]){ //开始交换 $temp = $arr[$i]; $arr[$i] = $arr[$j]; $arr[$j] =... 阅读全文
posted @ 2015-12-31 08:54 tiandi2050 阅读(182) 评论(0) 推荐(0) 编辑
摘要: http://www.thinkphp.cn/code/240.html 阅读全文
posted @ 2015-12-31 08:46 tiandi2050 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 首先,遍历map有以下方法:Java代码importjava.util.HashMap; importjava.util.Iterator; importjava.util.Map; publicclassMapTest{ publicstaticvoidmain(String[]args){ Ma... 阅读全文
posted @ 2015-12-30 08:50 tiandi2050 阅读(123) 评论(0) 推荐(0) 编辑
摘要: Verify.class.php 验证码类exec("set names ".DB_CHARSET); $this->DbOb=$pOb; } //添加 function add($arr){ $kStr=""; $kArr=array_k... 阅读全文
posted @ 2015-12-29 15:45 tiandi2050 阅读(223) 评论(0) 推荐(0) 编辑
摘要: config.ini.phpconn=$link; if(is_resource($link)){ mysql_set_charset(DB_CHARSET); $re=mysql_select_db(DB_NAME); ... 阅读全文
posted @ 2015-12-29 15:38 tiandi2050 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 类名Itemspackage entity;//商品类public class Items { private int id; // 商品编号 private String name; // 商品名称 private String city; // 产地 private in... 阅读全文
posted @ 2015-12-29 10:26 tiandi2050 阅读(817) 评论(0) 推荐(0) 编辑
摘要: 类名是ItemDAOpackage dao;import java.sql.Connection;import java.sql.PreparedStatement;import java.sql.ResultSet;import java.util.ArrayList;import util.DB... 阅读全文
posted @ 2015-12-29 10:23 tiandi2050 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 类名DBHelper:package collect;import java.sql.Connection;import java.sql.DriverManager;public class DBHelper { private static final String driver="com... 阅读全文
posted @ 2015-12-29 10:00 tiandi2050 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 1、其他都没变,URL 只显示「请求地址」(因为地址太长了不方便显示),但是同时能满足URL模糊搜索的需求。 $dataProvider, 'filterModel' => $searchModel, 'columns' => [ ['class' => 'yii\grid... 阅读全文
posted @ 2015-12-23 09:59 tiandi2050 阅读(386) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 17 下一页