This script has always worked up until yesterday now when I include topnews.php nothing displays, when i look at it direct it shows fine... why would it do this???
Page.php
<?php
require('topnews.php');
?>
<br>
<?php
require('news.php');
?>
topnews.php
<img border="0" src="images/topnews.jpg" width="367" height="15"><br>
<?php
mysql_connect (localhost, **, **);
mysql_select_db (**);
$ThreeDaysAgo = $set_base_nztime - (3 * 24 * 60 * 60);
//echo $ThreeDaysAgo;
$result78 = mysql_query ("SELECT * from NEWS WHERE `AddedTime` > '$ThreeDaysAgo' ORDER by ViewCount DESC limit 10");
while($row78 = mysql_fetch_array($result78)) {
$title = $row78['Title'];
$link = $row78['Link'];
$NewsID = $row78['NewsID'];
echo "<img src='http://www.example.com/images/n3.gif'>";
if ($row78['OWN'] == "0"){
echo "<a href='pages/newsdirect.php?NewsID=$NewsID' style='text-decoration: none' target='_blank'>";
} else {
$id = $row78['NewsID'];
echo "<a href='index.php?P=ViewNews&NewsID=$id' style='text-decoration: none'>";
}
echo "<font class='FontSmallBlack'>";
echo $title;
if ($_GET['V'] == "Y"){
echo " - " . $row78['ViewCount'];
}
echo "</font></a><br>";
}
?>