I created a custom db table inside my Magento2 database and am having trouble making my custom phtml file display the field. (I'm new to M2 and php)
Here's my code and when I echo $result it display properly on the website but when I try to display the field with the last line it breaks the page: