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(); ?>
Chiro-Canto is an online bat sound sharing set of tools, inspired by Xeno-Canto.
This website is developped with ♥ by Samuel ORTION, a juvenile Geekus biologicus.
This project is available under the GNU Affero GPL v3 license at https://forge.ortion.xyz/Chiro-Canto/chiro-canto.