Jump to content

Adding a Percentage of a table value to the table


netpants

Recommended Posts

I am using crons to add + somthing to a table in the database everyone hour how would I add a percentage instead of just a whole number, like how would I add 10% of the value of the uMiners table to uMiners based on the example below.

 

$db->query("UPDATE users SET uGold=uGold+(uMineLevel*(1000*uMiners))");

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.