Would someone please help? I have looked everywhere and can not find how to
update a database at a certain time.
I am trying to get this to update at midnight instead of every time the
browser refreshes. My hosting service has cron jobs
but I don't understand how to set them up. Is there a way to set this code
up to do what I need?
<?php
global $session;
$db["points"]=("UPDATE wt_users set points = points + 1000 WHERE
uid={$session["uid"]}");
$result=mysql_query($db["points"]);
$query="SELECT points FROM wt_users WHERE uid={$session["uid"]}";
$ret = mysql_query($query);
while(list($points)=
mysql_fetch_row($ret))
print("SP: $points");
?>
Thanks in advance!
Jennifer Downey
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php