$result_usuario = "SELECT * FROM vendas WHERE DATE(date_created) = '$data' AND
tipo_venda = '$tipo_vendas' AND tipo = '$tipo_pagamento' ORDER BY 'id'";
I have this query, but it does not work right because the input that populates the variable '$ data' comes with the format '12 / 11/2018 'and the format that counts in the colon' date_created 'and' 2018-12 -11 ', how do I adjust my query ??