Jump to content

[SOLVED] MySQL add to existing column?


Perad

Recommended Posts

What I want to do is simply add an amount to the ucp_game_credits column. I do not want to call out what it is first.

 

i.e. ucp_game_credits += $newammount

 

How can I do this in SQL?

 

$sql = "UPDATE ucp_users SET ucp_game_credits='???' WHERE ucp_id='". $_SESSION['uid']."'";

Link to comment
https://forums.phpfreaks.com/topic/82330-solved-mysql-add-to-existing-column/
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.