Jump to content


Refresh page


4 replies to this topic

#1 RHJ

    Young Padawan

  • Members
  • Pip
  • 3 posts
  • Gender:Male
  • Location:Norway

Posted 08 April 2008 - 12:25 PM

Hello,

I need some help with my code, I want it to refresh it self every month. But, I have tryed and searched all over. Someone her must know how i can get it to refresh it self? :)

I know that Meta don't work, then I must be on the page all time :s

<?php
include("connect.php");

$points = 0;

$update1 = mysql_query("UPDATE users SET login_points = '$points'");

$update2 = mysql_query("UPDATE users SET comment_points = '$points'");

$update3 = mysql_query("UPDATE users SET forum_points = '$points'");

$update4 = mysql_query("UPDATE users SET questbook_points = '$points'");

if(!$update1 && !update2 && !$update3 && !$update4) {
echo ("[color="red"]Database error[/color]");
}
?>


Thanks,
Zetra

#2 fycnrdths

    Young Padawan

  • Members
  • Pip
  • 16 posts
  • Location:stuck to my desk chair
  • Interests:programming.

Posted 08 April 2008 - 12:39 PM

Just create a cron job. If you need help with this, let me know who your host is and I can see how to set one up with them.

#3 RHJ

    Young Padawan

  • Members
  • Pip
  • 3 posts
  • Gender:Male
  • Location:Norway

Posted 08 April 2008 - 01:31 PM

My host is www.one.com, I tryed looking for cron jobs but didn't find anything on there sites or cpanel.

#4 fycnrdths

    Young Padawan

  • Members
  • Pip
  • 16 posts
  • Location:stuck to my desk chair
  • Interests:programming.

Posted 08 April 2008 - 01:32 PM

Your host doesn't support cron jobs. Right now, I can't think of another alternative. Try doing a Google search for something like: "cron job" alternative

Edited by fycnrdths, 08 April 2008 - 01:36 PM.


#5 RHJ

    Young Padawan

  • Members
  • Pip
  • 3 posts
  • Gender:Male
  • Location:Norway

Posted 08 April 2008 - 01:37 PM

Ok, I try.

Thanks





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users