I'm looking to verify a user's login via azure mysql. I can successfully connect to the database. I'm just having problems with the syntax associated with azure mysql. What I found online was for regular sql, but that doesn't seem to be the same.
Currently I have:
$result = mysqli_query($conn,'SELECT name, email FROM logins where name='$loginname' and password='$loginpassword'');
if(!$result || mysql_num_rows($result) <= 0)
{
echo("invalid user");
}
else
{
echo("successful login");
session_start();
$_SESSION["user"] = loginname;
//header("Location: ../question-explanation.html");
}
The error I get is: Parse error: syntax error, unexpected '$loginname' (T_VARIABLE), expecting ',' or ')' in