Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7954091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T03:18:58+00:00 2026-06-04T03:18:58+00:00

EDIT: I am creating a login and signup for a website. But, I am

  • 0

EDIT: I am creating a login and signup for a website. But, I am making it require a activation via email. I want to have them directed to a webpage that changed their “active” status in the database to 1 (boolean) so that they are then permitted to login. All I need now is to be able to change the value in the database

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T03:19:01+00:00Added an answer on June 4, 2026 at 3:19 am

    Create a table activations. When user signs up, create a random hash, and store it in this table along with his new user id. Then send an email, containing an url with the hash (for example, http://example.com/confirmation.php?hash=376728zhdif274thfj36).

    In your confirmation.php, you’d take the $_GET value, query the database with it, and select the according user id, then run another query with the user id, in which you’d set his activation status.

    Creating a new hash:

    INSERT INTO activations (hash, userid) VALUES ($hash, $userid)
    

    Selecting the userid with the hash:

    SELECT userid FROM activations WHERE hash = $_GET['hash']
    

    Updating the activation status with the user id from the query above:

    UPDATE users SET active = 1 WHERE userid = $userid
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want after login user redirects to page creating new table(website), so I have
I setup my website to require unique email addresses (no two users can have
I am creating a login register page which contains two edit text boxes(one for
i have a small problem, i am creating a edit page in my asp.net
I'm creating a responsive design but have run into a problem where the Facebook
I'm creating a login script for a website i'm developing, and am using PHP
We are creating a user login and registration system and have decided to bypass
I am creating a rich edit text box like so: const char *testText =
I am creating a tool with which to edit web pages within a CMS.
EDIT: See my answer below--> I am wanting to have a view that when

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.