in asp we wrote application.lock to lock and application.unlock to unlock the data.

So, how to make it in PHP ??.
Thanks.

    Can you explain what you mean by "lock the application".

    This is one of the few places where the more information the better 😃

      Application.lock & Application.unlock in asp used too many in updateing or inserting record in mysql or any other type of database.

      The reason is that as you know if we make airline system that help the customer to register for some thing that many people can register it in the same time, we have to make sure that no conflict will happen in the system, I mean every one will have his own registration id or any thing else, if two are registering in the same time the first one will have what he want then the second one and so on.

      Example in ASP:

      Application.Lock
      Application("NumVisits") = Application("NumVisits") + 1
      Application.Unlock

      I hope you know what I mean.

      Plzzzzzzzzzzzzzzzzzzzzzz HELP !! 🙁.

        But what will happen if other one enter in the same time while the table is locked ??.

        In asp, if a visitor lock a variable and other one enter some time (waiting....) will appear to the other visitor then the command will be excuted.

          Write a Reply...