Results 1 to 6 of 6
Thread: MySQL - unlock tables
-
01-09-2006, 03:25 PM #1WHT Addict
- Join Date
- Jan 2003
- Location
- London
- Posts
- 146
MySQL - unlock tables
Which of these is correct please:
$xxxxxxx->db->unlock_tables();
$xxxxxxx->db->unlock tables();Robert Isaac
Director/Web Admin
Volvo Owners Club
-
01-09-2006, 03:38 PM #2Junior Guru Wannabe
- 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.
-
01-09-2006, 03:48 PM #3WHT Addict
- 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.
BobRobert Isaac
Director/Web Admin
Volvo Owners Club
-
01-09-2006, 04:00 PM #4Web Hosting Master
- 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.
-
01-09-2006, 04:03 PM #5Junior Guru Wannabe
- 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.
-
01-09-2006, 05:58 PM #6Web Hosting Master
- 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.