Uncaught Error: Call to undefined function

0

I'm having problem validating Select , it would be a login validation and I'm having a Select problem.

Fatal error: Uncaught Error: Call to undefined function select * from
usuario where email='() in C:\WEB\cadastro\valida.php:4 Stack trace:
#0 {main} thrown in C:\WEB\cadastro\valida.php on line 4

below is the select:

$sql= mysqli_query ($conexao,"select * from usuario where email='"($_POST['email'])."' and senha='".($_POST['senha_usu'])."' limit 1") or die("Erro");
    
asked by anonymous 18.09.2017 / 18:27

1 answer

5

There is a problem with concatenation (the "." point is missing):

$sql= mysqli_query ($conexao,"select * from usuario where email='."($_POST['email'])."' and senha='".($_POST['senha_usu'])."' limit 1") or die("Erro");
    
18.09.2017 / 18:43