Authenticate the name and password, PHP Web Programming

Assignment Help:

Keep a list of allowed reporters and their passwords in a database table Authentication.  Define and populate the table beforehand manually using the phpMyAdmin interface to MySQL (or a command line interface if you like.) You can assume the reporter name is to be the primary key for the table.  The authentication information should have nothing to do with your UCID or MySQL passwords and name.  The table looks as follows with the appropriate data types for the columns.  The contents are NOT encrypted.

Authentication (for incident reports)

reporter_name

reporter_password

joe456

zebra

james777

checker

The PHP script should test the reporter name and password submitted from the form using a simple PHP or-die construction that queries the database for a matching reporter and password.  An SQL select command can be used but the returned data should not be accessed.  Just look up in the IT202 manual or on the online PHP manual how to tell if a select returned any rows.  If the select is defined appropriately, that will tell you if the reporter name and password were valid.   The password should not be encrypted by the browser, the script or in the database.

Caveat:

PHP:    When testing strings for equality in PHP, do not use = where you should use == (a pair of equal signs).  The PHP symbol = is for assignment statements; it is not used to compare strings; use the == equality operator for string comparison.

SQL:   When testing strings for equality in SQL, use = symbol, not the == used in PHP


Related Discussions:- Authenticate the name and password

Web design required for graphic company, Web Design A digital media as w...

Web Design A digital media as well as graphic company is seeking an individual with web experience to work with the company to update as well as manage its four web sites. De

Produce an E-Commerce Website for a Company, Produce an E-Commerce Website ...

Produce an E-Commerce Website for a Company Task Produce an e-commerce website for a company of your own choosing. You do not need evidence of their input but may need

Need help in add new content to new page create table, Add new content to ...

Add new content to new page (create table, etc.) We are adding a supplementary service to the business and a need additional page created for site (based off an existing page de

Design a web page which provides links to five websites, 1. Following is th...

1. Following is the code to design a Web page which provides links to five distinct Web sites. Link to five distinct Web sites &l

Php database hlelp, I am working in php basic learner want to know how to c...

I am working in php basic learner want to know how to connect database

Variables, Ask question #Minimum 100 words gre5yhrthtjtyju6r6t7i86786786tyu...

Ask question #Minimum 100 words gre5yhrthtjtyju6r6t7i86786786tyurt6ur6accepted#

Client specific url website in php, JC - Client Specific URL Website Ple...

JC - Client Specific URL Website Please respond as follows- 1) Do you FULLY understand the requirements? 2) Are you an EXPERT with Magento? 3) Do you have ANY questions

I want an api replication required, I want an API Replication required P...

I want an API Replication required Project Description: Want an API expert to aid in application development in regards to API extraction, and injection into other sites, as

Need capable to design any required worpress plugin, Wordpress Web designer...

Wordpress Web designer/Developer with web application development skills Be capable to design any required Worpress plugin, component, modules. We are begin a new USMLE/COMLE

I need help to make a clone of website, I need help to make a Clone of webs...

I need help to make a Clone of website - Database and web programming a) Change to the subject matter b) A beautiful design, c) A certification program (Users will upload

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd