1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

DataBase Value Update Issue

Discussion in 'Databases' started by minhazikram, Dec 27, 2013.

  1. #1
    I have a website which is integrated with mysql database.

    There is a a database where some amount is stored using a counter.

    I have a link, which when clicked deducts some amount from the database. The query is executed succesfully by php but when i refresh the page. The previous value gets back

    How can i solve this problem


    Thankyou
     
    minhazikram, Dec 27, 2013 IP
  2. jk.deff

    jk.deff Active Member

    Messages:
    59
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    55
    #2
    I guess you re-sending data when refresh.
    Create a variable in $_SESSION on the page with form, and then check and change it on the handler page.
     
    jk.deff, Dec 27, 2013 IP