Thread: PHP Question
View Single Post
Old 04-18-2005, 03:39 PM  
nmcog
Confirmed User
 
Join Date: Sep 2004
Posts: 825
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]);
nmcog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote