Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I deleted sensitive data but can someone tell me how can I succesfully make the variables obtained from $_POST compare with the variables like $receptionistFirstRequest
0) { $loginData = mysqli_fetch_array($loginResult); if ( $loginData['ReceptionistID'] == $receptionistIdRequest && $loginData['FirstName'] == $receptionistFirstRequest ) { echo($loginData['Password']); echo($loginData['ReceptionistID']); echo "success"; } else { // Invalid credentials echo "failed"; } } else { // No data found in the database echo "error"; } } else { // Query execution error echo "error"; } } ?> I deleted sensitive data but can someone tell me how can I succesfully make the variables obtained from $_POST compare with the variables like $receptionistFirstRequest or $receptionistLastRequest like it is above after I have clicked 'submit' on a html form and obtained the data from the database and it actually comes out succesful when I put the info in the form to be the exact same as the one in the database? it keeps saying failure for some reason, I'm not sure what I'm doing wrong.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started