Help for this page
SELECT max(weather_time) FROM pressure where (weather_time < '$event_t +ime')
my $sth = $dbh->prepare("SELECT max(weather_time) FROM pressure where +(weather_time < '$data_time')") or die "Cannot prepare: " . $dbh->errstr(); ... $row = $sth->fetchrow_hashref; $sth->finish(); return $row->{'baro_pressure'};