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

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

We need a wordpress expert, We need a wordpress expert I have a wordpres...

We need a wordpress expert I have a wordpress website which have few issues with login and PayPal. Therefore I need a wordpress expert who can solve all those issue tomorrow.

I want a webshop, Prestashop I want a webshop, the shop must be the same...

Prestashop I want a webshop, the shop must be the same wide as other sites It want to be a Danish shop. I haven't bought a domain yet, for the reason that I am think about

Need social networking site in php, Social Networking Site in PHP I have...

Social Networking Site in PHP I have a project that is in want a of a great php coder for a social networking site. Please have very good ratings to bid. Please don't bid if you

What is the difference between an intranet and an extranet, Question 1: ...

Question 1: (a) What is the difference between an intranet and an extranet? (b) Briefly mention and explain four types of applications present on the Internet? (c) (i) W

Php developer needed for google rank checker, PHP Developer Needed for Goog...

PHP Developer Needed for Google Rank Checker and Customer Portal Hired preceding developers and they did terrible work, We worked an great amount of hours and the money was wast

Developer to build a custom made interactive gaming website, Interactive Ga...

Interactive Gaming Website I want a developer to build a custom made interactive gaming website. Requirements will be from- a) website design b) gaming app design c) da

I need help to build state information portal, I need help to build State I...

I need help to build State Information Portal I am looking for a complete state information portal which has information about state education, healthcare, tourism, government o

Develop simple custom video playlist wordpress plugin, Develop Simple Custo...

Develop Simple Custom Video Playlist WordPress Plugin I want help to develop a simple wordpress plugin Desired Skills are MySQL Administration, HTML, PHP, WordPress

Want a web developer who can create an interactive web, Web Developer I ...

Web Developer I want a web developer who can create an interactive web experiment by integrating contests which can tally votes to find a winner. The votes must tally daily, and

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