Jump to content

PHP updating MySQL columns


plznty

Recommended Posts

How would I go about updating entire columns, for example.

 

SQL TABLE

ID - USERNAME - POINTS

1  -  JAMES      -    20

2  -  JOHN      -    40

 

How would i go about making a script on php to update everything in the points column, say for example if i wanted to (points + 4) or (points*5) etc.

I know about how to make a connection, i just dont know how to target every result.

Link to comment
https://forums.phpfreaks.com/topic/182893-php-updating-mysql-columns/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.