function photos_delete($id) { $db = site_db(); $sql = "delete from photos where id=?"; $st = $db->prepare($sql); $st->execute(array($id)); $db = null; }
function view_lab() { $db = site_db(); $sql = "Select * from laboratory"; $st = $db->prepare($sql); $st->execute(); $rows = $st->fetchAll(); $db = null; return $rows; }