码迷,mamicode.com
首页 >  
搜索关键字:think    ( 1909个结果
thinkphp访问其他数据库方法
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需要注意的一些东西
写在前面——真心没时间精力仔细总结了,先放这儿,有空再细化~~~~~~~~近期一直在玩Angularjs,不得不说,相对于Knockout,Angularjs这一MVVM框架更强大,也更复杂,各种教程网上到处都是,不过真正用到项目的时候会遇到各种坑。这儿有一篇Think in Angularjs主要...
分类:Web程序   时间:2014-08-13 10:26:25    阅读次数:205
amazon 设计 9 chat server
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
THINKPHP_模版系统变量$Think
系统变量输出 普通的模板变量需要首先赋值后才能在模板中输出,但是系统变量则不需要,可以直接在模板中输出,系统变量的输出通常以{$Think 打头,例如: {$Think.server.script_name} ...
分类:Web程序   时间:2014-08-10 15:55:40    阅读次数:220
think完全还原原形的 SQL
$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
python写的第一个简单小游戏-猜数字
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
think 多表 分组三维数组
public function businessDraftShow(){ $model = D('business');// 实例化Data数据对象 $data = $model->search(2); $shuju = $data['data']; $page = $data['pag...
分类:其他好文   时间:2014-08-08 15:30:56    阅读次数:276
关于think php 中用的ajax 调用
对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
UVA 10131 Is Bigger Smarter?(DP最长上升子序列)
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
Some thoughts..
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!