\n"; echo "
NEWS STORIES:
0){ // iterate through resultset -- echo news items while($row = mysql_fetch_assoc($result)){ if($row[link]){ echo"Original article

"; } $date = formatDate($row[date]); echo "$date

"; echo "$row[subject]
"; echo "By: $row[author]

"; $rc = "http://ntn.donrdenton.com/news/$row[file]"; // get a file into an array and echo it out $fcontents = file ($rc); while (list ($line_num, $line) = each ($fcontents)) { echo "$line
"; } } } // if no records present // display message else { echo "No news stories currently available"; } echo "\t
\n"; /* Free resultset */ mysql_free_result($result); /* Closing connection */ mysql_close($link); ?>