Is this the actual sql query syntax? assuming I have a field titled date_column?
SELECT * from table where date_column < now() - INTERVAL 24 hour
Notes on the bandwidth issue:
The bandwidth issue comes from pulling roughly 30 web pages and looks for a pattern to extract the data I am looking for, then writes that to my database.
The following piece of code is what I am worried will put a sudden load on the server:
if (!($fp = fopen($loadurl, "r"))) { echo "Frell. It Bombed for some reason. - Load Stats"; exit; }
$contents= fread($fp, 20000); fclose($fp); $start=strpos($contents, "FONT SIZE=\"2\">Rank"); $contents=substr($contents, $start);
preg_match_all ("/font size=\"2\"\>\b[[:digit:]]*\b/i",$contents, $ranks, PREG_PATTERN_ORDER );
for ($loop2=0; $loop2<=5; $loop2++) { $ranks[0][$loop2]=substr($ranks[0][$loop2], 14); }
It runs this loop once per squad member, about 30 times depending on how many members are found.
Am I being paranoid?
2Hawks