<?php
class IndexAction extends Action {
public function index($id=1){
//下面开始失效
$hh = M('hh')->field('dt',true)->select();//查询hh表中所有"dt"的值,按id,先后排列。可以是数字(1,20,23,)
$hhw = M('aa')->where('id in ('.$hh.')' )->select();//查询aa表中,id为(1,20,23)的数据栏。
}
//不知道,怎么写才正常
}