PDO::ERRMODE_EXCEPTION )); } catch (Exception $e) { die("Error : ".$e->getMessage()); } $req = $db->prepare('SELECT id, recordist_name, file_name, license, species, sound_type, date, time FROM `records` ORDER BY `entry_timestamp` DESC LIMIT 1'); $req->execute(); if ($data = $req->fetch()) { ?>
Recorded on =$data['date']?> at =$data['time']?>
" alt="bat sound spectrogram">=$data['license']?> =$data['recordist_name']?>