I tested the code and it’s working. Any questions just ask.
index.php
!DOCTYPE html>
<html>
<head>
<title></title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script type="text/javascript">
function atualizarTarefas() {
// aqui voce passa o id do usuario
var url="get.php?id=1";
jQuery("#tarefas").load(url);
}
setInterval("atualizarTarefas()", 1000);
</script>
</head>
<body>
INFORMACAO EH EXIBIDA AQUI: <div id="tarefas"></div>
</body>
</html>
get.php
<?php
$con = mysqli_connect('localhost', 'root', '', 'tarefas');
$id = $_GET['id'];
$sql = "select * from tarefas where id = $id";
$query = mysqli_query($con, $sql);
$resultado = mysqli_fetch_assoc($query);
$retorna = $resultado['vencidas'];
echo $retorna;
?>
What did you try?
– Vinícius Gobbo A. de Oliveira
In this video you have a php + javascript solution that may be useful https://www.youtube.com/watch?v=CFFJeHw6VBU. This question here at Sopt may also be useful http://answall.com/questions/9475/notifies%C3%A7%C3%B5es-real-time-like-to-stack-overflow.
– gustavox