ci中select问题
$this->db->select('name,map_lng,map_lat,'.$this->GetDistance('map_lat','map_lng', $map_l, $map_ln).' AS distance');这句话为什么不能执行
GetDistance 是什么? Hex 发表于 2013-9-3 16:19 static/image/common/back.gif
GetDistance 是什么?
是我自己定义的一个计算亮点距离的方法,那我这种写法有问题么
你的方法要返回合适的字段名才可以。
另外不能执行的话,报错是什么?贴一下。 我猜是GetDistance里面有query,把前面设置的select重置了,另外前面的select也会影响GetDistance里面的query
页:
[1]