I have a simple problem, but looks like I am having a hard time finding an answer. After the user logs in, I want to show the user if they have paid their yearly subscription or not. I keep the info in a database, so I am simply making a query looking for paid or unpaid. If paid, I would like to execute some part of code. If not paid, I would like to execute a different set of code.
My problem is to find the memberid. How would I grab the memberid (or even userid in this case) from the default page which will have the log in? The user logs in, and it says "welcome back Mr. x." That is when I would like to display messages based on their input.
Any type of help will be appreciated. Thanks.
My problem is to find the memberid. How would I grab the memberid (or even userid in this case) from the default page which will have the log in? The user logs in, and it says "welcome back Mr. x." That is when I would like to display messages based on their input.
Any type of help will be appreciated. Thanks.