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 is an image map, Question: (a) (i) How does HTML allow you to inse...

Question: (a) (i) How does HTML allow you to insert an image on a page with an alternate text if the image is not loaded? (ii) If after uploading your site, all the images

We need help to develop personal trainer website, We need help to develop P...

We need help to develop Personal Trainer Website The logo is already done thus the site needs to be designed inline with the logo look and feel. Pages required are- a) Hom

We need help in advanced map search for real estate, We need help in advanc...

We need help in advanced map search for real estate A search page utilizing MySQL data to find real estate listing in a given set of shapes on the map. Improve listing set using

Required skilled d3.js programmer, Need skilled d3.js programmer Seeking...

Need skilled d3.js programmer Seeking skilled programmer to work on SaaS prototype. Please offer proof of experience in the form of verifiable work and references. Desired Sk

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

We need help in couponic customzation, We need help in COUPONIC CUSTOMZATIO...

We need help in COUPONIC CUSTOMZATION Need Customization of cuponic script with added modular functionality. I have purchased the script as well as the modules. The customizatio

Graphical browsers, Graphical browsers: In order to enjoy the multimed...

Graphical browsers: In order to enjoy the multimedia aspect of the Web, you have to use a graphical browser like Netscape Navigator or NCSA Mosaic. Graphical browsers can illu

Design a website in wordpress, Website using Wordpress I'm looking for s...

Website using Wordpress I'm looking for someone to design a website for me. I have example websites of what I'm looking for. Design Type: New Website Purpose of the Web

What is $message and $$message in php, What is $message and $$message in PH...

What is $message and $$message in PHP. $message is a variable with a fixed name. $$message is a variable whose name is stored in $message. If $message comprise "var", $$mess

Write the php script to output the session contents, Question: (a) A we...

Question: (a) A website wishes to use sessions to store the user's name and display a welcome message on all its pages. The user enters his username in a textbox called "userna

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