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

Develop a bilingual website that will have an online store, Develop a bilin...

Develop a bilingual website that will have an online store and information about the designer of the product. Our product is glass blown merchandise and art. Job description:

File menu in dreamweaver, File Menu: Under it we have New, Save as, Save, S...

File Menu: Under it we have New, Save as, Save, Save as template, Export, Import, Preview in browser so on options. Edit Menu: In this menu we have Copy,  Cut, Paste, Redo, Undo

Web programming amazon dropshipping website, Web Programming Amazon Dropshi...

Web Programming Amazon Dropshipping Website for use with Bitcoins We are looking for web developers to help us with the creation of a dropshipping website that will interface wi

I need experienced developer to build an audio recorder, HTML 5 Audio Recor...

HTML 5 Audio Recorder (Hourly or Escrow) I am seeking a talented fully experienced developer to build an audio recorder in HTML5 (WebRTC style). The audio recorder must work in

I need a help in website development, I need a help in Website development ...

I need a help in Website development I am seeking to build a website that allows users to create profiles upload content and make payment transactions. Job description- I am

We need help in site coding, We need help in Site coding I have set up a...

We need help in Site coding I have set up a marquee using a jquery plugin. a) I want to duplicate that marquee action across multiple sites using iframe or some such so that

Need help to drupal boost module trouble htacess, Drupal Boost Module Troub...

Drupal Boost Module Trouble htacess I having worry getting Boost Module to work. Our Drupal is install in sub folder. The issue with htacess. Boost Module is generating ca

Total development of existing bilingual website with seo, Total makeover of...

Total makeover of existing bilingual website with SEO • Offer an eye-catching easy to navigate, multilingual as well as searchable website template offering several interactive

I need wp estore theme experienced developer, I need WP Estore Theme Experi...

I need WP Estore Theme Experienced Developer Maintenance work on word press estore theme website required. Should have previous proven experience with wp estore theme. Pro

Add javascript into a web page, As you know HTML (Hypertext Markup Language...

As you know HTML (Hypertext Markup Language) is the language you employ to generate Web documents. You should have created "Hello World!" as given below:

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