I have added a form into an admin panel with a yes (1) and no (0) option.

I have changed the Db so that on submit, the value gets added to the Db with the value "seller" 1 or 0, which works fine.

I have a form on my site. I only want it to display to a logged in person if they have a value in the Db of "1" for seller. If they have a value of 0 I want to print a message.

I am guessing I need to query the database, then construct a function and apply it in the page where the form code is to display it if the condition of "1" is met?

I have tried searching but cannot grasp how I can construct it.