上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 44 下一页
摘要:   阅读全文
posted @ 2016-03-15 10:19 李照耀 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 主体代码: <!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <title>演示:使用jquery.qrcode生成二维码</title> <style type="text/css"> .demo{width:400px; margin:40 阅读全文
posted @ 2016-03-08 14:26 李照耀 阅读(8173) 评论(2) 推荐(2) 编辑
摘要: <?php $array=array("first","sencond","third"); #1.echo end($array); #2.echo $array[count($array)-1]; #3.echo array_pop($array); #4.echo array_pop(arra 阅读全文
posted @ 2016-03-07 14:52 李照耀 阅读(1712) 评论(0) 推荐(0) 编辑
摘要: <?php /** * [L 加载语言的L的方法] * @param [string] $key [语言键的名称] * @return [string] $value [取到的语言值] */ function L($key='',$language_name='') { static $lang_a 阅读全文
posted @ 2016-03-04 09:55 李照耀 阅读(255) 评论(0) 推荐(0) 编辑
摘要: <?php $res=system("ipconfig -all"); $contents=trim(ob_get_clean()); $contents=str_replace("\r\n","",$contents); $contents=explode(" ",$contents); fore 阅读全文
posted @ 2016-03-02 10:21 李照耀 阅读(606) 评论(0) 推荐(0) 编辑
摘要: 只需要在地址栏输入 data:text/html, <html contenteditable> 回车后即可看到效果 阅读全文
posted @ 2016-02-18 15:03 李照耀 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 这是原始数据 想按照brand_id分组 并获取每个分组total_num最高的前3位 SQL语句为: select a.* from data a where 3 > (select count(*) from data where brand_id = a.brand_id and total_ 阅读全文
posted @ 2016-01-27 16:32 李照耀 阅读(7813) 评论(0) 推荐(0) 编辑
摘要: 同事在做抽奖排名的时候有个问题 需要按照一等奖二等奖三等奖未中奖的形式输出数据问到我如何排序。数据库设计如下 用一个prize_code字段标示了是否中奖 1是一等奖 2是二等奖 3是三等奖 0是未中奖思考许久 本来开始想用union 写出SQL如下select * from (SELECT... 阅读全文
posted @ 2016-01-18 21:34 李照耀 阅读(3171) 评论(0) 推荐(0) 编辑
摘要: 我是标题 阅读全文
posted @ 2016-01-14 15:28 李照耀 阅读(2581) 评论(0) 推荐(0) 编辑
摘要: continue是指跳出本次循环 进入下次循环 再来一次break是指循环结束 再也不来了可以用一个广告来解释这个区别这是continue房:Hi郭:是你啊房:我订的书到了吗房:啊!对了,给你的郭:谢谢!还没到房:那,这不是···郭:我说了还没到房:那···你觉得我还要等多久呢郭:你很急啊房:啊,不... 阅读全文
posted @ 2016-01-13 09:31 李照耀 阅读(296) 评论(0) 推荐(0) 编辑
上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 44 下一页