Quote:
|
Originally Posted by SilverTab
Not bad...the server can handle it......best way to do it is to store everything in a txt file and run a cron tab every 3-4 minutes that takes it, update the DB, and clean the txt file....so you reduce the # of queries/day drastically
|
I'd do that if I knew how

I ripped out code from TGP Rotator and edited it...
This part of the code I think is slightly wrong and could be done another way?
Code:
$result = mysql_query("SELECT URL FROM Sponsors WHERE Domain='$domain'") or die ("Invalid entry!");
$output = mysql_fetch_row($result);
$url = ($output[0]);