Authenticate the name and password, PHP Web Programming

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)







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.


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

Posted Date: 3/29/2013 6:01:31 AM | Location : United States

Related Discussions:- Authenticate the name and password, Assignment Help, Ask Question on Authenticate the name and password, Get Answer, Expert's Help, Authenticate the name and password Discussions

Write discussion on Authenticate the name and password
Your posts are moderated
Related Questions
Search Engines are programs which search the web. Web is a big graph along with the pages being the nodes & hyperlinks being the arcs. Search engines gather all the hyperlinks on e

Shopping Cart Purpose – Allows user to browse while keeping track of the items in which they will purchase at the end on the order page link and this will give a final price for al

We need help in web site development I need a developer to replicate a site for me. This will need the developer to setup an account as well as engage in to the site understandi

Step 1:  Select Layer from Common toolbar & draw a layer. Step 2:  Write the text within the Layer. Step 3:  Click on Modify button (when the layer is selected) Step 4:  C

We aim to prepare a MarketPLace which will be dedicated to handicrafts. The concept is to provide artists the ability to sell their products via a MarketPlace similar to etsy or ar

One of the most commonly utilized services on the Internet is the World Wide Web (WWW). The application protocol which makes the web work is Hypertext Transfer Protocol or HTTP. Do

I want a Eventbrite programmer Need someone to write a code that will implement custom tickets for eventbrite. Desired Skills are eventbrite

Several computers linked to the Internet host part of the DNS database & the software which allows others to access it. These all computers are known DNS servers. No DNS server has

Online "BOT" for merchandise I am seeking for a talented coder to help me write scripts for various online stores. (NIKE, Supreme, FootLocker, KITH, Eastbay, BAPE, etc.) I do

We need to develop a Number recognition from image (OCR) in PHP We want a piece of code that can analyze an image and read the numbers in the image and return these as text. The