Record
PDO::ERRMODE_EXCEPTION )); } catch (Exception $e) { die("Error : ".$e->getMessage()); } if (isset($_GET['id'])) { $req = $db->prepare('SELECT * FROM `records` WHERE id=:id'); $req->execute(array( "id"=>$_GET['id'] )); } else { $req = $db->prepare('SELECT * FROM `records` ORDER BY date'); $req->execute(); } if ($data = $req->fetch()) { ?>
=$data['file_name']?>
=$data['species']?>
Recorded on =$data['date']?> at =$data['time']?>
" alt="bat sound spectrogram">
" controls>
=$data['license']?> =$data['recordist_name']?>