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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:42:19+00:00 2026-06-07T11:42:19+00:00

On my website so far a user can add their username, password and email

  • 0

On my website so far a user can add their username, password and email to a MySQL database through php. I want to now let a user type those same credentials (username and password) into forms and then run a php script and check if the Username and passwords are in the database. How would write this script?

  • 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-07T11:42:20+00:00Added an answer on June 7, 2026 at 11:42 am

    Make a php function that gets what the user enters, then select them from your user table. If it returns something, say its is already in the database.

    Example:

    SELECT uname, pw FROM users WHERE uname="userNameInput" AND pw="userPwInput"; 
    

    if this returns a row, it already is in the db.

    You can then run this function on your choice of hitting a button or in every key stroke by calling the function with ajax.

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

Sidebar

Related Questions

A User can add a Sentence directly on my website, via Twitter or email.
I work on a market research database centric website, developed in PHP and MySQL.
I am developing an website in php where user can upload csv file. after
I'm building a website that allows user to connect using Facebook Connect. So far
I am doing a ASP .NET website where among other things a user can
Q1 We can add assembly reference to a web project via Website --> Add
I am making a simple Dynamic Website using PHP, where i allow the user
I'm working on a multi-user internet database-driven website with SQL Server 2008 / LinqToSQL
I'm creating a voting system for my PHP/MySQL website and I would like to
I have a section in my ASP.NET MVC3 website where a user can click

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.