Php Help

Discussion in 'PHP' started by kumar84, Jul 6, 2007.

  1. #1
    hai

    Iam having a login page with the help of username and password i want to enter into the login page

    in my login page there is certain orders i want to click that orders and i want to rename it, this is my job

    when i enter into my login page i SET THE LOCK BY 1, so when i logout the LOCK WILL BE ZERO

    After entering into my login page iam not renaming the orders, without doing that iam doing some other things in the same page or iam just leaving outside and i come after 2 minutes and if I click the same order which is to be renamed means It will not go to rename page, instead it want to show an message that " YOU ARE NOT ABLE TO RENAME THE ORDERS NOW" at the same time in the database the LOCK IS ALSO WANT TO SET TO ZERO


    this is the message i want now and also the LOCK IS ALSO WANT TO SET TO ZERO AUTOMATICALLY IN THE DATABASE when i click the orders without doing anything for 2 minuters and after that i click means


    SO I NEED A PHP CODE FOR THIS SITUATION
     
    kumar84, Jul 6, 2007 IP
  2. killerj

    killerj Active Member

    Messages:
    765
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    95
    #2
    are you trying something that would work like "User Online" script ?
    Consider using timestamp ;)
     
    killerj, Jul 6, 2007 IP
  3. kumar84

    kumar84 Peon

    Messages:
    34
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    yes it is online based one application only
    if u know any php code for this post for me
     
    kumar84, Jul 6, 2007 IP