Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Help with php code. Comments are things to be done on the code. The code is two different files but for the picture I just

Help with php code. Comments are things to be done on the code. The code is two different files but for the picture I just put all code into one notepad.
Code below:
admin_menu.php (files are separate just wanted to fit both in picture)
html>
head>
Administrator Menu
authenticate.php (second file)
//, show page below
??? else
// compare $pwd to the password from the users table
??? if $pwd is good:
// put the username into the session with a the key: 'user"
// redirect browser to admin_menu.php
// else show page below (don't give Mallory any clues)
???
// WARNING!
// Don't confuse the username (root) and password (empty string) for
// the MySQL database with the username/password from the form!!
?>
body>
Invalid username and/or password.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Manga Guide To Databases

Authors: Mana Takahashi, Shoko Azuma, Co Ltd Trend

1st Edition

1593271905, 978-1593271909

Students also viewed these Databases questions

Question

What are some examples of contracts that lack consideration?

Answered: 1 week ago

Question

Question Can employees make contributions to a profit sharing plan?

Answered: 1 week ago