上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 18 下一页
摘要: 世纪惨案:导入EXCEL出现:表头为 erp_orders_id;UPDATE `erp_orders` SET orders_ship_fee='', `orders_shipping_code`='' WHERE erp_orders_id=erp_orders_id;全部追踪号全没了。 阅读全文
posted @ 2014-07-23 15:59 UCanBeFree 阅读(400) 评论(0) 推荐(0)
摘要: error1:ERROR 1045 (28000): Access denied for user 'root'@'xyt.local' (using password: YES)grant all on mysql.* to 'root'@'192.168.11.172' identified b... 阅读全文
posted @ 2014-07-19 17:12 UCanBeFree 阅读(153) 评论(0) 推荐(0)
摘要: 1,命名变量num=2echo "this is {$num}nd"输出 this is 2nd2, 变量相加 默认是字符串相加var=1var=$var+1echo $var输出 1+13,如何数学相加:let "var+=1" var="$[$var+1]" ((var++))var=$(($... 阅读全文
posted @ 2014-07-18 21:01 UCanBeFree 阅读(119) 评论(0) 推荐(0)
摘要: 脚本执行:test:#!/bin/basha="Hello ,World!"echo "A is:" $a变为可执行sudo chmod +x test加入自动任务:自动任务配置文件: /etc/crontab# m h dom mon dow user command17 * * * * ... 阅读全文
posted @ 2014-07-18 20:18 UCanBeFree 阅读(212) 评论(0) 推荐(0)
摘要: 大致的调用方法请参考 AUTH模块 缓存最简单的是文件缓存: 举个最简单的例子: 先配置好cache 配置文件: 1 <?php defined('SYSPATH') or die('No direct script access.'); 2 return array 3 ( 4 'memcache 阅读全文
posted @ 2014-07-10 17:55 UCanBeFree 阅读(287) 评论(0) 推荐(0)
摘要: AUTH的实现是用抽象类来实现的,一个类,对应多种不同的验证方式。先来介绍一个抽象类,很有借鉴意义:实现一个猴子类,狗类,以及后面可其他类。 通常可以用抽象类和接口实现:但是我们不直接定义具体的类,我们把所有猴子类,狗类的特征放在不同的config里面,同过抽象类方法来 初始话一个对象。config... 阅读全文
posted @ 2014-07-10 15:35 UCanBeFree 阅读(190) 评论(0) 推荐(0)
摘要: 小孩和公共设施用继承的方法:class Sanitation{ public function Washhands(){ echo "Cleaning!"; } }class Child extends Sanitation{ }$child=new Chi... 阅读全文
posted @ 2014-07-10 09:26 UCanBeFree 阅读(293) 评论(0) 推荐(0)
摘要: 利用ORM存储一行信息: $user = ORM::factory('user'); $user->username = 'admin'; $user->email = 'admingmail.com'; $user->passw... 阅读全文
posted @ 2014-07-09 20:36 UCanBeFree 阅读(361) 评论(0) 推荐(0)
摘要: 游标: 类似于数组的下标。declare cur_test CURSOR for select id ,username from erp_manages; 定义游标;declare continue handler FOR SQLSTATE '02000' set done=1; 当数据扫描到... 阅读全文
posted @ 2014-07-08 17:38 UCanBeFree 阅读(262) 评论(0) 推荐(0)
摘要: #-*-coding:utf-8-*-'''Created on 2014年7月7日@author: xyt''''''尝试抽象一个牛群'''class Cows(): def __init__(self,age): self.age=age self.count_... 阅读全文
posted @ 2014-07-07 12:27 UCanBeFree 阅读(2511) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 18 下一页