INFX 371 Homework Project 3: Wiki This assignment tests your understanding of PHP and interaction with MySQL. Your task is to create a quiz/test app that will also allow users to add questions. This...








INFX 371 Homework Project 3: Wiki This assignment tests your understanding of PHP and interaction with MySQL. Your task is to create a quiz/test app that will also allow users to add questions. This is a very basic PHP/MySQL application. The following are the recommended files needed to complete the assignment (you may include more): · index.php - · login.php · search.php · createuser.php · wiki.php · addarticle.php Authentication As far as how the database should look, you have a one table for users. The concept is to use sessions for each to determine if a user has authenticated. · If an account does exist, hash the password (with a salt!), compare to the hash in the database, and if they match- start a session. · If an account does not exist (compare username) then a user can be created. Store a hashed password (with a sale) in the user table. · Check if $_POST["username"] is set for every page that would require authentication. If authenticated, proceed to restricted page. If not, send the user back to login.php. (username, password, submit) Wiki A table for the wiki entries should include data types that would allow for large entries. Each article should have its own page (wiki.php?short_title=INFX371Article) · To view the articles a user must have authenticated · An authenticated user can add articles · Articles must have the ability to be modified/updated NOTE: You do not have to have full edit, meaning an empty text box that does not include the article can be used to update. · Articles should have a short title, title, and body at a minimum. Connect to the database using mysqli_connect. Database: wiki; username: INFX371; password: P*ssword.
Nov 03, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here