logic to block the unauthorized user
hello
I have a table with the columns one, two and three. I am looking for logic for a page before it loads go and check if the person is in database, the home page should show up if not an error page should come up.