Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

SQL in PHP Help! I am trying to write code to log into my website. I am sure my username and password are already in

SQL in PHP Help!

I am trying to write code to log into my website. I am sure my username and password are already in the database. Can someone help me figure out what im doing wrong?

image text in transcribed

//Connect to the database (defined in dbconn.php) db_connect (Susername, $password) SEA -_POST['EA' $pass $_POST ['pass']; query-mysgl_query("SELECT CustomerID, Email, Passwd, FirstName FROM Customers WHERE email-EA AND passwordpass") session start O: S SESSION['sess user user echo "Welcome to the website!" else echo "invalid username or passowrd

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

More Books

Students also viewed these Databases questions

Question

6. Explain how to train managers to coach employees.

Answered: 1 week ago