I'm making a function to change the count of visits on my site. The function is this:
function visitas($conexao, $visita) {
$query = "update visita set visitas= visitas + 1";
return mysqli_query($conexao, $query);
}
But I do not know how to get him to tell the visitor automatically when viewing my site. Can someone help me? Thank you!