Tcmaker Posted January 17, 2010 Posted January 17, 2010 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"); ?> Quote
Redex Posted January 17, 2010 Posted January 17, 2010 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. Quote
Redex Posted January 17, 2010 Posted January 17, 2010 Lovley, you learn a new thing everyday :P Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.