2
I have a login form that returns the following ERROR:
You have an error in your SQL syntax; check the manual that Corresponds to your Mysql server version for the right syntax to use near 'as valor FROM olmp_cadparaprova WHERE email = 'cirillosales9' at line 1
Code:
$sql = "SELECT * senha_para_login as senha, as valor
FROM olmp_cadparaprova
WHERE email = '$_SESSION[email]'";
Does anyone know what it’s about?
Is missing the
SELECT
– rbz
Post your select to the question so we can help you better
– Tmc
Cirilo, the error occurred is due to your select command being incorrect, try to post the part of php code on which you mount it, the screen that requests the login data.
– Caique Romero
$sql = "SELECT * password_for_login the password, the value FROM olmp_cadparaprova WHERE email = '$_SESSION[email]'";
– Cirillo Wallison
@Cirillowallison already manage to solve the problem?
– Tmc
I haven’t been able to
– Cirillo Wallison
@Cirillowallison the after running my query still appears some error? the error is the same or different?
– Tmc
I cleaned the cash, error solved
– Cirillo Wallison
@Cirillowallison if my answer helped you can accept it by clicking on the left side of it. If you need any more help let us know.
– Tmc