Re: 2 Questions, PHP Login Validation Error message not showing and showing PHP echo in bootstrap div
Quote
$query = "select email, password from customer where email='$lemail' and password = '$lpass'";
$result = mysqli_query($conn, $query);
if ($row = mysqli_fetch_assoc($result) > 0)
{
$dbname = $row["email"];
$dbpass = $row["password"];
$passchk = password_verify($lpass, $dbpass);
This logic suggests you are storing raw passwords in customer.password. Terrible idea. Use encryption.
The posted code doesn't indicate why it's not matching values as you expect. It's a standard debugging problem: stub out variables so you can track, line by line, what's happening.
Re DIV visibility, also a debe=ugging problem to solve line by line, in any case not a question ofr a mysql forum.
Subject
Written By
Posted
September 23, 2017 08:59PM
Re: 2 Questions, PHP Login Validation Error message not showing and showing PHP echo in bootstrap div
September 23, 2017 09:28PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.