add a notify at the bottom if the news is cached

This commit is contained in:
Dan Olson 2000-06-22 00:59:12 +00:00
parent 231eb79fc2
commit 683674bfcc
2 changed files with 36 additions and 32 deletions

View File

@ -10,8 +10,10 @@
tableBoxHeader (featureBgColor, featureHeadColor);
tableTitle ('Latest News', 1, featureHeadColor);
require "news_funcs.php";
latestNews ('1 month');
$cached = latestNews ('1 month');
tableBoxFooter ();
if ($cached)
echo '<P>A MySQL error occoured. This news is cached and may not be current';
?></TD>
</TR>
<TR vAlign=top>

View File

@ -127,8 +127,10 @@
mysql_close ($conn);
} else {
include ('cache.php');
return (1);
// newsItem ('Now', 'Web Server', '<P>Error: Could not connect to SQL server to fetch news. Please notify the server administrator.');
}
return (0);
}
function fetchNewsEntry ($number)