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

Need nationbuilder developer, NationBuilder Developer We are seeking a l...

NationBuilder Developer We are seeking a long term NationBuilder developer to help us at our agency we produce websites for churches as well as nonprofits on the NB platform as

.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

How can images be optimized for use on web pages, Question: (a) Write ...

Question: (a) Write the HTML tags for the following text: Software List A. Module 1 • Adobe Illustrator CS3 B. Module 2 • Adobe Photoshop CS3 C. Module 3 • Maya •

Urgent php enhancement to online assessment website, URGENT PHP enhancement...

URGENT PHP enhancement to online assessment website We are currently looking for a skilled PHP developer (PHP & MySQL - with cPanel website administration interface) with outsta

Need help interactive weather map using weather data api, Create Interactiv...

Create Interactive Weather Map using Weather Data API Looking for an experienced web developer to create an interactive weather map of the US using the Aeris API. Desired Ski

Wordpress plugin configuration as well as customizations, Wordpress Plugin ...

Wordpress Plugin Configuration as well as Customizations I want help configuring a plugin correctly (Social Review Engine Plugin) in my Wordpress site. The plugin is previously

I need help in buddypress project, I need help in Buddypress project I h...

I need help in Buddypress project I have a Buddypress site that I want some help with please. 1. The job needs that you know how to build a new Buddypress group component. Th

Life span of variables, While you declare a variable in a function, the var...

While you declare a variable in a function, the variable can be accessed within that function only. While you exit the function, the variable is destroyed. These variables are ca

We need a front end developer for responsive site, We need a Front End Deve...

We need a Front End Developer for responsive site In search of a front end developer to put together a responsive template (using Zurb Foundation or alternative) for a modern, s

Need wordpress expert with responsive design experience, Need WordPress exp...

Need WordPress expert with Responsive design experience for "Customizr" theme We want help from a Wordpress guru who can repair bugs with WP Customizr theme [CSS PHP code errors

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