$TotalDistance = SqLite("sql","SELECT sum(g_Distance(t1.latitude,t1.longitude,t2.latitude,t2.longitude,'M')) FROM caches AS t1, caches AS t2 WHERE t1.rowid = t2.rowid - 1") |
$data = sqlite("sql","select lparent,ltype ,lby ,ldate,ltime,g_gcdate(ldate,ltime) as GcDate from logs where ldate <> gcdate","Headings=Y") $data = sqltohtml($data,"Log dates different to Groundspeak","Y" |
select count(*) from logs where lisowner and (ltype = 'Found it' or ltype='Attended' or ltype='Webcam Photo Taken') |
select count(*) from logs where lisowner and g_foundlog(ltype) |
$out = sqlite("sql","select code,name, g_LatLonFormat(latitude,'latm') as Latitude, g_LatLonFormat(Longitude,'lonm') as Longitude, Distance from caches ","Headings=Y") $result = sqltohtml($out,"Coordinates formatted in minutes","Y") |