|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
How to Lock and Unlock SQL with PHP
I am somewhat familiar with the lock and unlock function but as a newbie I am having difficulty putting it into action.
For example, in this update string can someone give me the right code to LOCK the file for writing and then unlock it when done. THANKS!!! $sql = "UPDATE $usertable SET TimesViewed=TimesViewed+1 WHERE $var1 LIKE '%$search%'". " AND ClassifiedType='$ClassifiedType'"; |
|
#2
|
|||
|
|||
|
RE: How to Lock and Unlock SQL with PHP
Check out:
http://www.mysql.com/doc/en/LOCK_TABLES.html Also, why are you wanting to lock the tables? In most cases, you should not need to do so.... |
|
#3
|
|||
|
|||
|
Hi everyone
Hi everyonemy name's yatz, from francewish to have new friends from here
|
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Database Help > How to Lock and Unlock SQL with PHP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|