Wrong syntax of MySql, in PHP [closed]

-1

I am retrieving values from my Database, and doing a var_dump to the $ result variable throws me the following error.

  

E: \ wamp64 \ www \ evasion \ ajaxResume.php: 18: boolean false

Could you help me find the error, I leave you the syntax of the query that I wrote:

$query = "SELECT DISTINCT * FROM medicion WHERE ppu = '".$ppu."' sentido = '".$sentido."'";
$resultados = mysqli_query($enlace, $query);
    
asked by Luippo 24.08.2017 в 23:06
source

1 answer

1

I found the error in the Syntax. It should be as follows:

$query = "SELECT DISTINCT * FROM medicion WHERE ppu = '".$ppu."' AND sentido = '".$sentido."'";
$resultados = mysqli_query($enlace, $query);
    
answered by 24.08.2017 в 23:12