Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2003
    Location
    London
    Posts
    146

    MySQL - unlock tables

    Which of these is correct please:
    $xxxxxxx->db->unlock_tables();
    or
    $xxxxxxx->db->unlock tables();
    Bob
    Robert Isaac
    Director/Web Admin
    Volvo Owners Club

  2. #2
    Join Date
    Mar 2005
    Location
    New Zealand
    Posts
    61
    What is the name of the class you are trying to access?

    The first option looks correct as running $db->lock access() will make php look for the variable 'lock' within that class.
    Hide website errors from your users plus manage all errors from multiple websites in one place FREE...

    Codetrail.com: SSL Secure bug-tracking webservice.

  3. #3
    Join Date
    Jan 2003
    Location
    London
    Posts
    146
    I presume you are asking what the x's are, but the one main thing I need to establish is should the underscore be there, between 'unlock' and 'tables'? The code is from a copyrighted script so I don't want to put too muh there without the permission of the owner. Just trying to help troubleshoot a problem.

    Bob
    Robert Isaac
    Director/Web Admin
    Volvo Owners Club

  4. #4
    Join Date
    Mar 2004
    Posts
    1,303
    looks like unlock_table() is the name of a function. It should use the underscore.
    Before doing this, look for the class file xxxxx and see what exactly the function is written out.

  5. #5
    Join Date
    Mar 2005
    Location
    New Zealand
    Posts
    61
    I agree with orbitz.. One way to find the definite answer is to read up on the documentation the programmer hopefully supplied with the script.
    Hide website errors from your users plus manage all errors from multiple websites in one place FREE...

    Codetrail.com: SSL Secure bug-tracking webservice.

  6. #6
    Join Date
    Jul 2003
    Location
    Kuwait
    Posts
    5,104
    One way to find the definite answer is to read up on the documentation the programmer hopefully supplied with the script.
    There are also ways to reverse-engineer this information, but really only should be used in exterme emergency situations -- and then only done by skilled programmers.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •