I need a complete SQL statement, rather than just modifying the where clause.
I am trying to run a proximity search based on latitude and longitude.
The following has worked for my purposes in the past: (less the joomla database table)
Is it possible to insert this somehow with ChronoConnectivity?
I am trying to run a proximity search based on latitude and longitude.
The following has worked for my purposes in the past: (less the joomla database table)
"SELECT ((ACOS(SIN($lat * PI() / 180) * SIN(lat * PI() / 180) + COS($lat * PI() / 180) * COS(lat * PI() / 180) * COS(($lng - long) * PI() / 180)) * 180 / PI()) * 60 * 1.1515) AS distance,Name FROM #__chronoforms_CF_MYFIELD HAVING distance<='$miles' ORDER BY distance ASC"
Is it possible to insert this somehow with ChronoConnectivity?