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 8102529
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T23:15:52+00:00 2026-06-05T23:15:52+00:00

i created a table in the database (mysql),and i write a code for inserting

  • 0

i created a table in the database (mysql),and i write a code for inserting data in the datbase using php.values are inserted properly.here i set the status column value as deactive.when user created in that time ,we send a mail to the user to active the link ,means my site and then status column has to changed as active.

my db table contains the following columns

name,email,pwd,status,lastlogin,security qun,ans

when user is created in that time i set the status as deactive.in that time i want to sent a mail(in this mail,i want to send the link to their account) to the user to active their account ,then only user goes to the next process.after that when user open the mail & click that link,the status column has to changed as active in the database.how can i do this,anyone help me..

  • 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-05T23:15:54+00:00Added an answer on June 5, 2026 at 11:15 pm

    one way to solve the problem is:

    1. make the field ‘status’ as varchar not int.

    2. when you are inserting user information for the first time, make a random string and insert it in the status field.

    3. say your random string you have created is ‘lka342lkjasd8234kl2324ljklj2’. send the link with the string as a parameter.

    4. when the link is clicked in the script check the verification string matches the value in your status table.

    5. if it matches then show message that his account is verified and change the value of the field to 1 (as 1 indicates a active account)

    6. if the string doesn’t matches then show message the verification link is wrong.

    in another way you can make another table for storing verification string. and make the status fiend an integer. set 0 initially and make it 1 when verified, and check the verification with the new table.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a MySQL database using MySQL Workbench. It has about 20 tables.
Hy. I want to display pictures from my mysql data base. Php Code: <body>
I am trying to create a go-moku game using jquery,php, and mysql database. I
I'm trying to insert some data into a local MySQL database by using MySQL
PROBLEM: importing data into ALREADY CREATED mySQL database I've done a lot of search
I am trying to create this table in a MySQL database CREATE TABLE IF
I have 2 tables in my mysql database: CREATE TABLE IF NOT EXISTS `RECIPES`
I have mysql database structure like below: CREATE TABLE test ( id int(11) NOT
Can we create a new MySQL database( not a table, I want a new
I recently created my simple log4net database table for logging via the adonet appender..

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.