上一页 1 ··· 4 5 6 7 8 9 10 下一页
摘要: select * from tb_user where fid IN (10,33,22,76,13,44) order by FIND_IN_SET(fid,'10,33,22,76,13,44');select * from tb_user where fid IN (10,33,22,76,13,44) order by field(fid,10,33,22,76,13,44); 阅读全文
posted @ 2013-03-27 23:15 /折磨 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 1 $startdate=strtotime("2009-9-5");2 $enddate=strtotime("2009-9-18"); 3 $days=round(($enddate-$startdate)/3600/24) ;4 echo $days; 阅读全文
posted @ 2013-03-27 22:31 /折磨 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 1 <?php 2 3 class runtime 4 { 5 6 7 function __construct() { 8 $db_config = array( 9 'host' => '127.0.0.1',10 'port' => 3306,11 'user' => 'root',12 'pwd' => 'root',13 'dbname' => 'test'14 );15 $link = mysql_con 阅读全文
posted @ 2013-03-26 22:21 /折磨 阅读(415) 评论(0) 推荐(0) 编辑
摘要: 直接循环插入数据库 以1000条记录为1次 (第一次):137.8毫秒(第二次):152.8毫秒(第三次):120.1毫秒(第四次):119.9毫秒(第五次):124.7毫秒(第六次):129.6毫秒(第七次):131.5毫秒(第八次):122.5毫秒(第九次):117.4毫秒(第十次):123毫秒第二种 也是以1000条记录为1次 (第一次):7.1毫秒(第二次):40.3毫秒(第三次):6.8毫秒(第四次):9.8毫秒(第五次):10.1毫秒(第六次):7.1毫秒(第七次):10毫秒(第八次):6.9毫秒(第九次):7.2毫秒(第十次):7.8毫秒 阅读全文
posted @ 2013-03-26 22:20 /折磨 阅读(573) 评论(0) 推荐(0) 编辑
摘要: 1 for ($i=1; $i<=1000;$i++) { 2 $id = '100';3 $username = 'xm';4 $sql[] = '('.$id.',"'.$username.'")'; 5 } 6 mysql_query('insert into tb_user(id,username) values '.implode(',',$sql)); 阅读全文
posted @ 2013-03-26 21:19 /折磨 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 1 a{ 2 3 cursor:pointer; 4 5 text-decoration:none; 6 7 hide-focus: expression(this.hideFocus=true); 8 9 outline:none; 10 11 } 12 13 a:link,a:visited,a:hover,a:active{ 14 15 text-decoration:none; 16 17 } 18 19 a:focus{ 20 21 outline:0; 22 23 } 阅读全文
posted @ 2013-03-14 16:22 /折磨 阅读(3557) 评论(0) 推荐(0) 编辑
摘要: http://www.popub.net/script/MSClass.html 阅读全文
posted @ 2013-02-25 22:57 /折磨 阅读(134) 评论(0) 推荐(0) 编辑
摘要: function updatetime(){ var endtime = new Date($("#showtime").attr("endtime")).getTime(); var nowtime = new Date().getTime(); var stime = endtime - nowtime; var lag = stime / 1000; //当前时间和结束时间之间的秒数 //alert(lag); if(lag > 0) { ... 阅读全文
posted @ 2013-02-25 13:55 /折磨 阅读(483) 评论(0) 推荐(0) 编辑
摘要: http://code.google.com/ 阅读全文
posted @ 2013-01-31 14:57 /折磨 阅读(17) 评论(0) 推荐(0) 编辑
摘要: 1 <select onchange="window.location.href=this.options[selectedIndex].value" >2 3 <option value="http://www.86shichang.com" >86市场网</option>4 5 <option value="http://www.yahoo.com" >雅虎</option>6 7 <option value="http://www.baidu.com&q 阅读全文
posted @ 2013-01-28 22:45 /折磨 阅读(143) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 下一页