table('goods')." AS g ,".$ecs->table('comment')." AS c WHERE c.user_id='$uid' and g.goods_id= c.id_value order by c.add_time desc LIMIT $page,5"; //print_r($sql); $res = $db -> getAll($sql); print_r(json_encode($res)); ?>