getAll($sql); echo json_encode($result); } }catch (Exception $e) { die($e->getMessage()); } ?>