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

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

We need help in likenet upgrade - slot machine, We need help in Likenet Upg...

We need help in Likenet Upgrade - Slot machine LikeNet Upgrade - Slot Machine Users is able to gamble their credits A visual/engaging/animated slot machine. Looks merely l

Title tag, The only thing you need to concern yourselves with in the HEAD t...

The only thing you need to concern yourselves with in the HEAD tag (for now) is the TITLE tag. The bulk of the page will be in the BODY tag, as illustrated in Figure.

I want help of php programmer with codeignite, I want help of PHP Programme...

I want help of PHP Programmer with CodeIgnite, Java, and MySQL experience. We are in succession on Ubuntu with a MySQL Backend. The website is written in PHP and CodeIgnter.

Need help in wordpress programming, Wordpress programming We are creativ...

Wordpress programming We are creative agency seeking a developer proficient in wordpress programming for our client, a real estate team. We need layout content by now complet

We need a developer for bootstrap also php smart mind, We need a Developer ...

We need a Developer for bootstrap also php smart mind I want to make changes and minor modifications to a project done in bootstrap and php smart mind Desired Skills are MySQ

I need help in posting ads multiple time, I need help in Posting Ads Multip...

I need help in Posting Ads Multiple Times I would like to get certain Ads posted. Multiple times. I have lots of Ads that want to be posted everyday. Desired Skills are

Need to create poker site with bitcoins, Need to create Poker Site with Bit...

Need to create Poker Site with Bitcoins We want to customize the poker software, we need it run both on web site (html5) and as desktop software -We want to customize Affilia

We need assistance in responsive website design and html, We need assistanc...

We need assistance in Responsive Website Design and HTML We run an existing technology website as well as we now need someone to re-design it for us as well as write the respons

Adding xml files to html page, Step 1: Select File -> Import XML into Templ...

Step 1: Select File -> Import XML into Template Step 2: Choose the XML file & click Open While an XML file is imported, Dreamweaver merges the XML content in the Template

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