摘要: grant all privileges on ao.* to 'tony'@'localhost' identified by '123456'; 在ao库中所有表. 同意 ,授权 给tony,在本地ip 鉴定码 是123456 阅读全文
posted @ 2016-05-03 20:10 小庄啊 阅读(549) 评论(0) 推荐(0) 编辑
摘要: ubuntu 静态ip设置 检查网络ifconfig (不是ipconfig)必须有2个地址一个回送地址:127.0.0.1一个实际地址:192.168.3.58 sudo vim /etc/network/interfaces 添加2个地址. auto loiface lo inet loopba 阅读全文
posted @ 2016-05-03 10:23 小庄啊 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 问题1:请用最简单的语言告诉我PHP是什么?回答:PHP全称:Hypertext Preprocessor,是一种用来开发动态网站的服务器脚本语 言。 问题2:什么是MVC?回答:MVC由Model(模型), View(视图)和Controller(控制器)组成,PHP MVC可 以更高效地管理好3 阅读全文
posted @ 2016-04-23 13:33 小庄啊 阅读(163) 评论(0) 推荐(0) 编辑
摘要: $a = 1200.00;$b = 1199.80;$c = 0.1;$u = 0.12; $d = $b+$c+$u;var_dump($a);var_dump($d);var_dump(bccomp($a,$d,2)); 在php中比较浮点数大小.使用bccomp(数字1,数组2,小数个数) , 阅读全文
posted @ 2016-04-21 10:44 小庄啊 阅读(856) 评论(0) 推荐(0) 编辑
摘要: wamp2.5会出现的问题,是因为WampServer2.5内置的是PHP5.5,而PHP5.5 环境是基于VC11的编译脚本下生成的,所以需要安装Visual Studio 2012 VC 11 vcredist_x64/86.exe才能正常运行。 下载86的 https://www.micros 阅读全文
posted @ 2016-04-21 09:09 小庄啊 阅读(151) 评论(0) 推荐(0) 编辑
摘要: function lastSql(){ $sql = DB::getQueryLog(); $query = end($sql); return $query; } 阅读全文
posted @ 2016-04-15 13:29 小庄啊 阅读(2090) 评论(0) 推荐(0) 编辑
摘要: 提交给iso开发前.先模拟post提交,测试返回是否正确 post.php文件 ios每次最少要提交5个数据, 加密串 seqno , 请求验证码 source, 设备唯一标识TerminalSN 时间戳,TimeStamp 版本Version source 计算方式 双重md5加密 md5( md 阅读全文
posted @ 2016-04-13 15:49 小庄啊 阅读(366) 评论(0) 推荐(0) 编辑
摘要: 01 设置标题为.标题1.标题2,标题302 引用--插入目录03 配置文档结构图.查看--可快速回到目录 阅读全文
posted @ 2016-04-11 16:51 小庄啊 阅读(242) 评论(0) 推荐(0) 编辑
摘要: db.php 文件中添加 public function getlastsql(){ return $this->sql; } 入口文件中添加,公共方法 function getlastsql(){ include '../cmstop/framework/factory.php'; $db = & 阅读全文
posted @ 2016-04-08 10:46 小庄啊 阅读(1043) 评论(0) 推荐(0) 编辑
摘要: mysql中查询字段为null或者不为null 在mysql中,查询某字段为空时,不可用等号 = null, 而是 is null,不为空则是 is not null select * from category where parentid is null; //取出顶级栏目,作为标题 selec 阅读全文
posted @ 2016-04-06 17:13 小庄啊 阅读(283) 评论(0) 推荐(0) 编辑