M(‘[基础模型名:]模型名‘,‘数据表前缀‘,‘数据库连接信息‘) $User = M(‘User‘,‘think_‘,‘mysql://user_a:1234@localhost:3306/thinkphp‘); 在config.php增加 ‘DB_CONFIG2‘ => ‘mysql://root:localhost@115.*.*.*/...
分类:
数据库 时间:
2014-08-13 15:26:37
阅读次数:
167
写在前面——真心没时间精力仔细总结了,先放这儿,有空再细化~~~~~~~~近期一直在玩Angularjs,不得不说,相对于Knockout,Angularjs这一MVVM框架更强大,也更复杂,各种教程网上到处都是,不过真正用到项目的时候会遇到各种坑。这儿有一篇Think in Angularjs主要...
分类:
Web程序 时间:
2014-08-13 10:26:25
阅读次数:
205
Solution:Apparently, I am too naive and I think too few. Here's the detailed solution.What is our chat server?This is something you should discuss wit...
分类:
其他好文 时间:
2014-08-12 05:53:23
阅读次数:
210
系统变量输出 普通的模板变量需要首先赋值后才能在模板中输出,但是系统变量则不需要,可以直接在模板中输出,系统变量的输出通常以{$Think 打头,例如:
{$Think.server.script_name} ...
分类:
Web程序 时间:
2014-08-10 15:55:40
阅读次数:
220
$dd = Db::getInstance(); //实例连接数据库$sql = "SELECT * FROM `yezi_friendlinks`"; // SQL$res = $dd->query($sql); // 查询$tt = print_r($res, true); // 结果// $t...
分类:
数据库 时间:
2014-08-10 12:51:49
阅读次数:
261
1 #Filename:game1.py 2 3 guess=10 4 running=True 5 while running: 6 try: 7 answer=int(raw_input('Guess what i think:')) 8 ...
分类:
编程语言 时间:
2014-08-08 15:59:16
阅读次数:
215
public function businessDraftShow(){ $model = D('business');// 实例化Data数据对象 $data = $model->search(2); $shuju = $data['data']; $page = $data['pag...
分类:
其他好文 时间:
2014-08-08 15:30:56
阅读次数:
276
对thinkphp 那简直是一窍不通,使用这个ajax 也是用的jq POST方法public function ajaxshow08(){ $model=M('Flow'); $bid = $_POST['data']; $list = $model->where(array('busine...
分类:
Web程序 时间:
2014-08-08 12:35:05
阅读次数:
234
DescriptionQuestion 1: Is Bigger Smarter?The ProblemSome people think that the bigger an elephant is, the smarter it is. To disprove this, you want to...
分类:
其他好文 时间:
2014-08-06 14:39:11
阅读次数:
242
I think it is natural for an algorithm rookie that when facing a challenging problem, a rookie may fall into her\his algorithm dictionary - she focuse...
分类:
其他好文 时间:
2014-08-06 14:36:21
阅读次数:
232