Register & Log In Feature For Simple PHP/MySQL site

Discussion in 'PHP' started by ozgression, Aug 11, 2013.

  1. #1
    What is the best way to make an index.php page and people register with a username and password (and a user ID which auto increments from 1 upwards) and then they can log-in and see the index.php page contents. On index.php it says "please register or log-in" when the user is not logged in. Then it will show the content when the user is logged in, such as "Welcome to X site".

    I am very new to PHP so please keep it simple...
     
    ozgression, Aug 11, 2013 IP
  2. EmmanuelFlossie

    EmmanuelFlossie Active Member

    Messages:
    159
    Likes Received:
    11
    Best Answers:
    2
    Trophy Points:
    65
  3. ozgression

    ozgression Well-Known Member

    Messages:
    343
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    140
    #3
    Last edited: Aug 11, 2013
    ozgression, Aug 11, 2013 IP
  4. EmmanuelFlossie

    EmmanuelFlossie Active Member

    Messages:
    159
    Likes Received:
    11
    Best Answers:
    2
    Trophy Points:
    65
    #4
    EmmanuelFlossie, Aug 11, 2013 IP
    ozgression likes this.
  5. ozgression

    ozgression Well-Known Member

    Messages:
    343
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    140
    #5
    ozgression, Aug 11, 2013 IP
  6. EmmanuelFlossie

    EmmanuelFlossie Active Member

    Messages:
    159
    Likes Received:
    11
    Best Answers:
    2
    Trophy Points:
    65
    #6
    yes it does,

    and for the unique id you can id field
     
    EmmanuelFlossie, Aug 11, 2013 IP
  7. terrymason

    terrymason Well-Known Member

    Messages:
    727
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    145
    #7
    You want User Cake.
    http://usercake.com/
     
    terrymason, Aug 12, 2013 IP