$threshhold and time_obs between '$startISO' and '$endISO' order by $var DESC limit 5;"; } if ($stat == 'below' ) { $statcond=" below $threshhold"; $sql="select matlab_datenum, year,yearday, $var , time_obs, extract(epoch from time_obs)/3600/24 as UJD from $datatable where CAST (yearday* 24*60 as int8) % 1 = 0 and $var < $threshhold and time_obs between '$startISO' and '$endISO' order by $var ASC limit 5;"; } $rs = odbc_exec($conn,$sql); // find the greatest month before $curUJD $thismonthUJD = mktime(0, 0, 0, date('m',$curUJD*24*3600),1 ) /(3600*24) ; header('Content-type: text/xml'); print ''; print ''; print ''; ?> VIMS Buoy reports for <?print "$var";?> VIMS buoy reports for http://sura-vims-pe6600-1.vims.edu/~drf/buoyreports.php?var= 37.2460 -76.4995 Copyright 2006-2007 VIMS <? print "$var $statcond"; ?> at <?=$time_obs?> http://sura-vims-pe6600-1.vims.edu/~drf/buoyreports.php? 37.2460 -76.4995