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

Need help in php work on site to fixes, PHP Work on site - fixes, additions...

PHP Work on site - fixes, additions Require some work re-done on seo friendly url creation from vsadmin module of e-commercetemplates.com. a) The SEO checkbox to create NEW c

Upgrades to desktop site as well as mobile version needed, Word Press - upg...

Word Press - upgrades to desktop site as well as mobile version needed a) banners to be able to be able to be listed for all cities or just cities chosen - currently the banners

Need help to make checkout page customisation, Checkout Page Customisation ...

Checkout Page Customisation 1) Clone process need to be exact same as the reference checkout site 2) Final product must be responsive to all devices Desired Skills are MyS

Selecting a table, After that you will adjust the space within the navigati...

After that you will adjust the space within the navigation button table. The simplest way to choose a table in Standard view is using the tag selector that displays HTML tags of el

We need a reasonably simple documentation website, We need a reasonably sim...

We need a reasonably simple documentation website The website will be hosted on a Microsoft SharePoint for in-company use only. The determination of this website is to create

Prepare a web application using php, Define and implement a software system...

Define and implement a software system that lets an authorized reporter enters information about a (simulated) computer system services incident (kind of incident, date, time of da

Adding css style to html page, Step 1: Click on Window Menu Step 2: choo...

Step 1: Click on Window Menu Step 2: choose CSS Styles Or Click onto CSS Styles in the "Launcher" Step 3: Click on New to generate a new CSS style Step 4: select the Ty

We need help in tumblr page design, We need help in Tumblr Page Design W...

We need help in Tumblr Page Design We are in search of a designer to edit a tumblr page to look like a clients website. The page size, navigation as well as background need to m

Web developer and designer required for new site build, Website designer/de...

Website designer/developer needed Web developer/designer required for new site build. Person wants to be confident in design and development, SEO opt, as well as ability to b

We need a website expert for website template, We need a Website expert ...

We need a Website expert We have a website template We want to have an English version and add our own content in English and ftp to a server Desired Skills are MySQL Admi

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