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

Local area network, It is a privately - owned computer networks confined to...

It is a privately - owned computer networks confined to small geographical area, like an office or a factory extensively used to connect office PCs to share information & resources

.Management science an introduction to management sci, identify the feasibl...

identify the feasible region for a set of constraints 3a-2b>0 2a - 1b 1a a,b>0

Geoip2 installation assistance, GeoIP2 installation assistance Can someo...

GeoIP2 installation assistance Can someone help us implement Geoip2 on website? We consume GeoIPlite working as we speak, we at present want to update it. Desired Skills a

Business starter website needs to grow up a little need help, My business' ...

My business' starter website needs to grow up a little The site was completely homemade when I started my business last year. While it's visually striking, the way it was constr

We want a wordpress webmaster, We want a Wordpress Webmaster In order to...

We want a Wordpress Webmaster In order to find somebody good and reliable than can become our preferred webmaster in the future, we might want to test a few people. So, I would

Support with custom wordpress theme, Support With Custom Wordpress Theme ...

Support With Custom Wordpress Theme I am seeking someone to help me customize a WordPress theme. I will design the theme and I am looking for someone to code it for me. Desir

Java web base, whats the cost of doing a java web base project

whats the cost of doing a java web base project

Develop an orientation programme, Assume the position of a consultant hired...

Assume the position of a consultant hired to assess the approach towards orientation and induction programmes for new recruits of an organization that is engaged in manufacturing a

App ios - scan qrcode, APP IOS - Scan QRCODE Project Description: We ...

APP IOS - Scan QRCODE Project Description: We need the one team with maximum availability, that indicates us what is required in the project, and configure our hardware as re

Bigcommerce entirely responsive design application, BigCommerce entirely re...

BigCommerce entirely responsive design application I am in search of a programmer who can implement my Mockups on my BigCommerce shop. Requirement a) You write clean code wit

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