Answered step by step
Verified Expert Solution
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?
//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
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