$hoje = date('d');
$data_hoje = "SELECT * FROM vendas WHERE dataCompra = now()";
$result = mysqli_query($conexao, $data_hoje);
while($linha = mysqli_fetch_assoc($result)){
if($linha['dataCompra'] == $data_hoje){
$hoje++;
}
}
I'm doing a mysql table search to pick up and count all sales today and then insert that into a chart, but I can not print anything. can you help me?