PDO::ERRMODE_EXCEPTION )); } catch (Exception $e) { die("Error : ".$e->getMessage()); } if (isset($_GET['record'])) { $req = $db->prepare('SELECT id, recordist_name, file_name, license, species, sound_type, date, time FROM `records` WHERE id=:id'); $req->execute(array( "id"=>$_GET['record'] )); } else { $req = $db->prepare('SELECT id, recordist_name, file_name, license, species, sound_type, date, time FROM `records` ORDER BY date DESC, time DESC LIMIT 1'); $req->execute(); } $data = $req->fetch(); ?>
A web tool for bat sound analysis
=$data['license']?> =$data['recordist_name']?>