How to make profit simulator through clicks on a link

0

Hello! I'm doing a web project and needed a click simulator, where for every click on the link I would give 1 centime, 0.01 euro (Portuguese currency)

The instructions they gave me were:

We will develop the application financing module. is what will benefit the business.

The file will be called browser.php and has the function: . receive the arguments of the sponsor / news and the user (user id - session variable, idartigo, title, campaign value, address to open) . write in the table 'benefits' the fields: user id, idartigo, title noticia, value camapanha, address . inform the user that they are being redirected to the URL they want . open the news / sponsor / news URL

areareserv.php

 <div class="col-md-12 fadeIn animated">
            <?php
                include('configdb.php');
                #session_start();
                if  (isset($_SESSION['loginOK'])):
                    if  ($_SESSION['loginOK']==1):
                        echo ("Bem-vindo, ". $_SESSION['nome']);
                        echo "<br><br>";
                        echo ("\n O seu login foi efectuado com sucesso.");
                          if    ($_SESSION['admin']==1): echo " <p><a href='./backoffice'>És administrador. Acesso ao backoffice.</a></p>"; endif;

                            $query = mysqli_query($mysqli, "SELECT * FROM artigos WHERE activo = 1 ORDER BY idartigos DESC");
                                    while($row_artigos = mysqli_fetch_array($query))
                                    {                       
                                echo "<br><br>";
                                echo "<strong>$row_artigos[1]</strong>";
                                echo "<br>";
                                echo($row_artigos[2]);
                                echo "<br>";
                   #LINK ONDE NECESSITO DE FAZER CONTAGEM    
                                echo("<a target='_blank' href='http://".$row_artigos[3]."'>".$row_artigos[3]."</a>");       

                                echo "<br><br>";
                                echo("<hr>");
                                    }

                    else:
                        echo ("Login necessário. Registe-se ou faça login, sff.<br>");
                        header("refresh:3;url=index.html");
                    endif;
                else:
                    echo ("Login necessário. Registe-se ou faça login, sff.<br>");
                    header("refresh:3;url=entrar.php");
                endif;

            ?>

    
asked by anonymous 28.06.2017 / 15:47

0 answers