insert into hi_user_score set hello_id=74372073,a=10001 on duplicate key update hello_id=74372073, a=10001如果在INSERT语句末尾指定了ON DUPLICATE KEY UPDATE,并且插入 Read More
原文地址:http://m.jb51.net/show/56492 这篇文章主要介绍了php之curl实现http与https请求的方法,分别讲述了PHP访问http网页与访问https网页的实例,以及相关的注意事项,需要的朋友可以参考下 本文实例讲述了php之curl实现http与https请求的 Read More
原地址:http://www.cnblogs.com/xiaoluo501395377/archive/2013/04/05/3001148.html 这篇随笔应该说跟CentOS的学习关系不是很大,但是却关系到了我接下来的CentOS学习。。。。。。 自从在虚拟机中安装了CentOS以来,就想着能 Read More
if($code!=200){ $user=new UserAuth(); $user->mobile=$register['mobile']; $user->password=md5($register['password']); $user->username=$register['userna Read More
源文件地址:http://www.cnblogs.com/lclq/p/5619271.html 1.下载安装VMware,我安装的是VMware 12.VMware从11开始不再支持32位系统,32位系统请安装10. VMware官方功能特性介绍http://www.vmware.com/cn/p Read More
原文地址:http://www.open-open.com/lib/view/open1431680242669.html 1.push git push命令用于将本地分支的更新,推送到远程主机。它的格式与git pull命令相仿。 注意,分支推送顺序的写法是<来源地>:<目的地>,所以git pu Read More
$res = News::findOne($new_id)->toArray();yii框架的多表联查:controller层: //news 与 news_theme 是多对一的关系$infomsg=News::find()->with('newstheme')->asArray()->all() Read More
原作者:http://www.cnblogs.com/martin1009/archive/2011/11/11/2245794.html 1. 从www.apachefriends.org 上下载XAMPP for Windows的最新版本,我下的是XAMPP Windows 1.7.1 Inst Read More
我们在开发项目中南面使用到session给和cookie,那么在yii中有他自己的规则 如下案例: session使用 function actionS1(){ echo $this->id." "; echo $this->action->id." "; 设置session,通过session组件 Read More