ThinkPHP
Mir_憨豆先生
这个作者很懒,什么都没留下…
展开
-
Thinkphp 联表查询
原文地址:http://www.thinkphp.cn/topic/8562.html我有2个表 表1.表2已知表2的user_id 查询满足 表2.wb_id=表1.id 表1的内容 $result = M()->table(array('表1'=>'表1缩写','表2'=>'表2缩写'))->field('表1缩写.字转载 2015-06-23 13:47:48 · 499 阅读 · 0 评论 -
PHP调用MYSQL存储过程实例
原文地址:http://blog.csdn.net/ewing333/article/details/5906887实例一:无参的存储过程$conn = mysql_connect('localhost','root','root') or die ("数据连接错误!!!");mysql_select_db('test',$conn);$sql = "creat转载 2015-06-27 08:37:04 · 479 阅读 · 0 评论 -
Thinkphp M order方法
在ThinkPHP中,M("user")->order("id desc")->select();这样就是按id 这个字段降序查询。想要对取出的数据做limit限制的话,就用M("user")->order("id desc")->limit(3)->select();原创 2015-07-03 09:48:28 · 1002 阅读 · 0 评论