2Pacalypse Posted November 28, 2008 Posted November 28, 2008 Hi all, I've decided that it would be cool to experiment a little with the level function... so I made a cron that runs every few hours, thing is.. it doesnt work lol <?php include "config.php"; global $_CONFIG; if($_GET['code'] != $_CONFIG['code']) { die(""); } define("MONO_ON", 1); require "class/class_db_{$_CONFIG['driver']}.php"; $db=new database; $db->configure($_CONFIG['hostname'], $_CONFIG['username'], $_CONFIG['password'], $_CONFIG['database'], $_CONFIG['persistent']); $db->connect(); $c=$db->connection_id; $db->query("UPDATE users set level=level+1 WHERE daysold<51"); ?> That is the cron file, but it doesn't work! Can anyone patch this up for me? Quote
AlabamaHit Posted November 28, 2008 Posted November 28, 2008 Re: Auto-levelling! Do you have a spot in users table called daysold?? If so....Do you have a user older than 51 days?? Quote
2Pacalypse Posted November 28, 2008 Author Posted November 28, 2008 Re: Auto-levelling! Yeah, daysold exists, and it is '<51', and yeah all users are less than 51 days old Quote
AlabamaHit Posted November 28, 2008 Posted November 28, 2008 Re: Auto-levelling! lol sorry about that.... Next thing is..did you use the Key? just like in the other crons you run? and have you tried to run it manually? if so What does it say or do? Does it give you an error? 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.