I need help success.php

Discussion in 'Payment Processing' started by maffias, Apr 3, 2012.

  1. #1
    Hello to everyone
    Let me explain my problem .. are new to php and hard I managed to make his own mafiaonline game .. I finished but I am stuck at the end .. the paypal payment problem.

    So explain, after the user makes the payment through paypal is redirected to my game /success.php that the following code:
    include ('_include-config.php ");
    include ("data / Names.php");
    Includes ("settings.php");

    if (! check_login ()) {
    header ("Location: login.php");
    exit;
    }
    ?>



    <h1> payment </ h1>
    <div class="ingame_bottom">

    <table width="441" align="left">
    </ td> </ tr>
    </ table>


    <? PHP


    echo "
    <td <tr> class=\"mainTxt\" align=\"left\"> <font color=green> <b> your payment was successful! </ b> </ font>

    <br>
    <br> You can close this page

    </ td> </ tr> </ div> ";
    mysql_query ("UPDATE` users `SET` callcredits `=` 300 `WHERE` callcredits login `= '$ data-> login'");
    return;



    ?>

    So far everything perfectly, the problem ¿
    If the user gives success.php refresh this page, I get back the 300 credits and so onindefinitely.

    If someone can help me with completing the code for success.php, to offer users the300 credits and then not give them done if you refresh or go to the site.

    Thank you very much and I owe him that can help sell
    a nice day
    Excuse my English
     
    maffias, Apr 3, 2012 IP
  2. maffias

    maffias Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    pls help mee:(
     
    maffias, Apr 3, 2012 IP