How to create a notification system similar to facebook [closed]


I am a beginner and need to develop a system to control tasks in php . I would like this system to have an icon in the upper right corner, which would show a number of tasks expired on that day for the user, similar to notifications of facebook .

Is there anything ready to use?

asked by anonymous 02.05.2015 / 00:52

1 answer


I tested the code and it works. Any questions just ask.


!DOCTYPE html>
        <script src="//"></script>     
        <script type="text/javascript">
        function atualizarTarefas() {
           // aqui voce passa o id do usuario
           var url="get.php?id=1";
        setInterval("atualizarTarefas()", 1000);
INFORMACAO EH EXIBIDA AQUI: <div id="tarefas"></div> 


    $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;
02.05.2015 / 01:36