join方法import("@.ORG.Page"); $Form = M('gly'); $where=''; if ($_POST['qcx']=='查询'){ if (!empty($_POST['username'])){ $where = 'glyname like \'%'.trim($_POST['username']).'%\''; }
首先,我们来看一下tp框架里面的查询方法: 查询有很多种,代码如下: <?php namespace Admin\Controller; use Think\Controller; class MainController extends Controller { public function showList() { echo "大苹果商城"; } public function test() { //数据访问 //造模型对象 $nation = D("Nation