4
$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 doesn’t work right because the input that fills the variable '$data' comes with the format '12/11/2018' and the format that counts in the colona 'date_created' and '2018-12-11', as I do to adjust my query??