Welcome Guest, Not a member yet? Register   Sign In
Paginate problem with aggregate column
#7

Try:
PHP Code:
$this->select('( 6371 * acos( cos( radians('.$this->escapeString($array['lat']).') ) * cos( radians( user_lat ) ) * cos( radians( user_lon ) - radians('.$this->escapeString($array['lon']).') ) + sin( radians('.$this->escapeString($array['lat']).') ) * sin(radians(user_lat)) ) ) as distance'false); 
Reply


Messages In This Thread
RE: Paginate problem with aggregate column - by kenjis - 12-07-2021, 07:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB