1
I have a problem in mysqli_query and I can’t find the error. I tried to make some changes I saw on the Internet and it didn’t do any good. I also tried to change the line that is file problem, but the error persisted. The error message is:
[Thu Aug 17 11:57:43.192874 2017] [:error] [pid 2716] [client ::1:39160] PHP Parse error: syntax error, Unexpected '=' in /var/www/html/valida_login.php on line 7, referer: http://localhost/login.php
And the quoted line is:
result = mysqli_query("SELECT * FROM usuario WHERE login = '$usuario' AND senha = '$senha';");
Missed the
$
in the variable name?result
?– rray
That’s right, thank you!
– Lucas Ramos
@rray posted as wiki to close the issue, but if you prefer we can remove and you answer "officially" to receive the appropriate upvotes.
– Bacco