Dates with php google charts

0

I need to get the date and put it in a graph of Google Chart , example: Sales today, this week, this month.

$sql = "SELECT dataCaptura FROM produtos";
//Trazendo resultados da tabela
$result = mysqli_query($conexao, $sql);
//Condição para formar gráfico
$cont_hoje = date('d');
$cont_semana =date('w');
$cont_mes =date('m')

while($linha = mysqli_fetch_assoc($result)){

    if($linha['dataCaptura'] == date('d')){
        $cont_hoje++;
    }

    else if ($linha['dataCaptura'] =='date('w')){
        $cont_semana++;
    }
    else if ($linha['dataCaptura'] =='date('m')){
        $cont_mes++;
    }
}           

?>

But I can not seem to show the amount of sales made today.

    
asked by anonymous 08.10.2018 / 20:23

0 answers