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

What are the different types of runtime errors in php, Question: (a) W...

Question: (a) What are the different types of Runtime Errors in PHP? (b) What are the differences between GET and POST methods in form submission? Briefly explain in

I am in need of wordpress tweaks to existing custom plugins, I am in need o...

I am in need of Wordpress Tweaks to Existing Custom Plugins Was hoping you had some obtainable time today, about hours to work on tweaks to plugin functionally of existing Wordp

We are in need of website development, We are need of Website Development ...

We are need of Website Development I want a website developed that can do the following: 1. Google map that can search locations in a certain area. They must be able to searc

What is ip-in-ip encapsulation, Question: Mobile IP was intended to wor...

Question: Mobile IP was intended to work with legacy applications and correspondent nodes. However, some advantages may be gained if correspondent nodes are aware of mobility

What is the difference between $message and $$message, What is the differen...

What is the difference between $message and $$message? Main difference between $message and $$message is that former is a simple variable and later is a reference variable. $me

We are looking for expert coldfusion programmer, We are looking for Expert ...

We are looking for Expert ColdFusion Programmer - must be in Northern VA/DC area We are in want of an expert ColdFusion developer who can help us with a project that involves ec

We need help to modify a web page, We need help to Modify a web page We ...

We need help to Modify a web page We need help to Modify a web page to include posting a new category to our menu including add Add heading as well as text to our current web

I am seeking a web developer- frontend as well as backend, Web developer (F...

Web developer (Frontend and Backend) I am seeking a Web Developer- Frontend as well as Backend to create a responsive website very similar to Zomato Your responsibilities-

Write a php application, Write a Php application that is used to manage a r...

Write a Php application that is used to manage a restaurant business. Assume menu items, categories (appetizer, dessert ...etc), prices and descriptions. The Restaurant has 10 tabl

Incorporating vbscript into html page, In order to add scripts into your We...

In order to add scripts into your Web pages tag is utilized. The tag denote the start of the script section, whereas marks the end. An

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