Hi
This may seem simple but it not working for me.
I currently have the following:
All I want is to reduce each individual value by one less than the current stored value. Google doesn't seem to give me the answer!PHP Code:UPDATE images SET POPULAR = POPULAR -1 WHERE POPULAR > 0
What this statement is doing is taking the first value it finds and using that as the value to update all other fields with the same value... not good.
Do I really have to create a loop for this???????
There must be a simpler mySQL solution...
Rich


1Likes
LinkBack URL
About LinkBacks

Reply With Quote

