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 shipping distance calculator for sitemile wordpress, Need Shipping Dis...

Need Shipping Distance Calculator for Sitemile Wordpress Auction Using this theme and framework, I want a widget that allows users to enter in an address as well as receive a sh

I want a continuing education website, Continuing Education Website We w...

Continuing Education Website We will be selecting an expert within a week if one meets our needs. Work with databases: php/mysql

We are in need of virtual assistant, We are need of Virtual Assistant We...

We are need of Virtual Assistant We search someone who are our new full-time assistant. We expect dependability in-time ambition and knowledge with good work results. Must ha

Expert in backbone.js - jquery and css to update page layout, Expert in bac...

Expert in backbone.js, jQuery and CSS to update page layout and transition effects Project Description: I want an expert in backbone, node, CSS, jQuery and HTML5 to update th

We are in search of a developer with customizing shopify, Shopify Expert ...

Shopify Expert We are in search of a developer with experience customizing Shopify. You should have experience and provide samples doing this. You must as well have experience

Redesign to travel website, Redesign to Travel Website - Design, SEO, Ease ...

Redesign to Travel Website - Design, SEO, Ease of Use Project Description: We are seeking a dedicated programming team to improve a travel website. To provide upgrades to the

Standard internet protocol, FTP (File Transfer Protocol), a standard Intern...

FTP (File Transfer Protocol), a standard Internet protocol. This is the simplest way to exchange files among computers on the Internet. FTP is an application protocol which uses th

Need experienced php developer, I need Experienced Php developer.with subse...

I need Experienced Php developer.with subsequent skills Cakephp, Wordpress, Codeigniter , Php,Mysql,Ajax. Skills required: CakePHP, MySQL, Codeigniter, PHP, Wordpress

I want help in woocommerce theme customization, Woocommerce Theme Customiza...

Woocommerce Theme Customization Hello you will be working on transforming this woocommerce theme Kindly let me know if you are able. You will require to discern woocommerce d

Desire for help in metasearch infrastructure on website, Desire for help in...

Desire for help in Metasearch infrastructure on website We are seeing for experienced computer programmers that have built search engines met search or indexing sites in the pas

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