This is really simple, just fire up mysql from the command line and play with the commands. You don't need php.
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
Can't you do UPDATE table SET col_value = col_value + 1 ?
cscgal
The Queen of DaniWeb
19,431 posts since Feb 2002
Reputation Points: 1,474
Solved Threads: 230
Why do you keep saying row. There is no such thing as a row in databases! Using that term is quite confusing.
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
All I'm saying is the term row can be quite misleading. There is a tendency to think of rows like those in a text file. Where row two is below row one etc.
Obviously this topological relationship doesn't hold for databases.
As long as the OP understands this it is ok to use the term row. I was under the impression he might be confused. If I'm incorrect, and he does realize this, then I apologize.
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439