Welcome to our forums...

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Forum Statistics

  • Forum Members:
  • Total Threads:
  • Total Posts: 2
There are 1 users currently browsing forums.
PHP Scripting PHP is a scripting language for rapid web-development. It's a popular and powerful, OOP-capable language that is used by professionals. Discuss PHP here.

Reply
  #1  
Old 06-09-2009
New Born
 
Join Date: Jun 2009
Posts: 1
Rep Power: 0
harrisl is on a distinguished road
Need Help with Validating Paid Members for a Members Only Area

Hi,

I am new to using PHP and I found a script on the internet for a Member's only area at PHP MySQL Login*Script. The script is working, but I would like to make sure that the people who sign up to access the Members Only Area are paid members. Currently, anyone can signup whether they are a member or not. My thought is to create an additional table called "Paid Members" which stores the paid members names and have the registration form check the "Paid Members" form to see if the person trying to sign up is listed in the "Paid Member's" table. If the person is listed, the form data in the sign up form is sent to a member's table that came with the script that I found. If the person isn't not listed in the "Paid Member's form that I created, then they are given a message that they are not a member and the form data is not sent to the "Member's" table. What code do I need to implement to make verify if a person is a Paid member. Thanks in advance for anyone's help.

L
Reply With Quote
  #2  
Old 06-21-2009
bigdude's Avatar
Just a "Little" Kid
 
Join Date: Oct 2004
Location: Michigan
Age: 20
Posts: 61
Rep Power: 6
bigdude is on a distinguished road
Re: Need Help with Validating Paid Members for a Members Only Area

Create a flag in your members table. Have a column called 'member' or something to that nature, and have it set as 0 if they are not a member, 1 if they are.

PHP Code:
if($users['member'] == '1'){
}else{
echo 
'You are not supposed to be here!';
return;

Reply With Quote


Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Instant Hacking (An Introduction to Python) Part 1 jacotyco Articles, Tutorials, and Guides 3 01-30-2007 11:35 AM
There is still the "4,000 members by 2007!" note for unregistered members... <? Ashley ?> Chit Chat and Hangout 2 01-10-2007 07:52 PM
Dealing with Forum Cliques GTAce Suggestions 5 10-18-2005 09:46 PM
Members Area Oliver PHP Scripting 9 05-27-2005 09:03 PM
Members Area PHP Help Helloadam PHP Scripting 9 12-21-2004 09:05 PM