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

Tcp - ip networking model, This is an acronym for Transmission Control Prot...

This is an acronym for Transmission Control Protocol / Internet Protocol. This is a collection of applications, protocols and services. TCP/IP protocol was developed prior to the O

Create an html document, An HTML document may be created via any HTML edito...

An HTML document may be created via any HTML editor or text editor such as notepad etc. STEPS FOR CREATING A SIMPLE HTML PROGRAM 1) Go to Start -> Pro

Need magento developer needed for content port, Need Magento Developer Need...

Need Magento Developer Needed for Content Port and Ongoing Development Pro Sound Effects is seeking an experienced Magento developer to assistance in porting its existing Magent

A php and ecommerce expert needed, A PHP/eCommerce Expert Needed Descrip...

A PHP/eCommerce Expert Needed Description- This is aid with an ecommerce site using Balanced payments API. There is as well certain low level PHP that will need to be done. T

Need help oscommerce postage fee need to paypal fix, Oscommerce postage fee...

Oscommerce postage fee - paypal fix 1. For certain reason the total payable send to ebay seems to no longer comprise the postage fee that was selected at check out. It is expose

I want a wordpress theme to be customized, Wordpress Theme customization ...

Wordpress Theme customization I want a wordpress theme to be customized. This is for an e-commerce website. Must Be Capable To Start Right Away. Must be capable to work on No

We need help in improvement to dating community website, We need help in Im...

We need help in Improvement to Dating Community Website Our website script came with a (mobile version) however members are not allowed to upload photos to the site on the mobil

I am seeking a long term wordpress developer, WordPress Developer - Long Te...

WordPress Developer - Long Term I am seeking a long term WordPress developer. We will start with a test project. You have to develop a WordPress theme from scratch. Note-

Wordpress website creation, Wordpress Website creation I have just finis...

Wordpress Website creation I have just finishing a photoshop design for a merely straight forward HTML website. It has 15 content pages with few photos and graphs. I want to

I need a web developer develop a simple corporate responsive, I need a Web ...

I need a Web Developer Start-up company in Tel Aviv is looking for a talented Web Developer to develop a simple (no backend) corporate responsive website of 5 Pages Job descript

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