Jump to content
MakeWebGames

Recommended Posts

Posted

this is my cron but it updates 25% but i want it to update 5 percent but it dont

<?php
require "mysql.php";
require "../../../../global_func.php";
global $c;
mysql_query("UPDATE `users` SET `energy` = `energy` + 5 WHERE donatordays > 0");

mysql_query("UPDATE `users` SET `nerve` = `nerve` + 1 WHERE donatordays > 0");

mysql_query("UPDATE `users` SET `happy` = `happy` + 5 WHERE donatordays > 0");


?>
Posted
this is my cron but it updates 25% but i want it to update 5 percent but it dont
require "mysql.php";
require "../../../../global_func.php";
global $c;
mysql_query("UPDATE `users` SET `energy` = `energy` + 5 WHERE donatordays > 0");

mysql_query("UPDATE `users` SET `nerve` = `nerve` + 1 WHERE donatordays > 0");

mysql_query("UPDATE `users` SET `happy` = `happy` + 5 WHERE donatordays > 0");


?>

 

Well i'm not exactly a coder, though i would think it's got to do with the +5 bit above in the quatation. Try adjusting the +5 to +3 or something or whatever number and see if it makes a diffrence.

Let me know how that works out for you please.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...