I have a database called roles and in it 2 columns, 1 with user IDs called Owner and another one called userRole with a value (1 or 2). What I would like to do is when the member is on the homepage if the userRole has the value = 1 then I would like to show a button on the page, otherwise hide that button.
As I'm new and don't really understand the coding yet I need a code for something like this:
if ( user is logged in AND his user ID matches the user ID in the Owner column AND the value of userRole = 1) then
show button2 on page
hide button2 on page
I'd be really grateful if someone could help me out. Thanks :)