PDO::ERRMODE_EXCEPTION
));
} catch (Exception $e) {
die("Error : ".$e->getMessage());
}
if (isset($_GET['record'])) {
$req = $db->prepare('SELECT * FROM records WHERE id=:id');
$req->execute(array(
"id"=>$_GET['record']
));
} else {
$req = $db->prepare('SELECT * FROM records ORDER BY date DESC LIMIT 1');
$req->execute();
}
if ($data = $req->fetch()) {
} else {
$_SESSION['error_msg'] = "Can't fetch data.";
}
?>
GUANO | Chiro-Canto
GUANO v1.0
=isset($_SESSION['error_msg']) and $_SESSION['error_msg'] != "" ? ''.$_SESSION['error_msg'].'
' : "";?>
about GUANO
GUANO|Version: 1.0
Original Filename: =$data['file_name']?>
Timestamp: =$data['date']?> =$data['time']?>
Species Auto ID: None
Species Manual ID: =$data['species']?> =$data['subspecies']?>
Tags: None
Note: =(isset($data['remarks']) and $data['remarks'] != "") ? $data['remarks'] : "None"?>
TE: =(isset($data['time_expansion']) and $data['time_expansion'] != 0) ? $data['time_expansion'] : "Not defined"?>
Samplerate: =(isset($data['sample_rate']) and $data['sample_rate'] != 0) ? $data['sample_rate'] : "Not defined"?>
Length: =(isset($data['duration']) and $data['duration'] != "") ? $data['duration'] : "Not defined"?>