From 448296927c59c280a0b6c16f1b20356643492bf9 Mon Sep 17 00:00:00 2001 From: Nelson Rush Date: Mon, 8 May 2000 00:30:27 +0000 Subject: [PATCH] ah --- cur_news.php | 25 ++----------------------- index.php | 2 +- 2 files changed, 3 insertions(+), 24 deletions(-) diff --git a/cur_news.php b/cur_news.php index 67a0125..75129e8 100644 --- a/cur_news.php +++ b/cur_news.php @@ -1,25 +1,4 @@ DATE_SUB(NOW(), INTERVAL 1 MONTH) ' . - 'ORDER BY n_date DESC'; - $result = mysql_db_query( "quakeforge", $query, $conn ); - if ( $result > 0 ) { - $numRows = mysql_num_rows( $result ); - if ( $numRows > 0 ) { - for ( $i = 0 ; $i < $numRows ; $i++ ) { - list( $n_date, $n_user, $n_news ) = mysql_fetch_row( $result ); - newsItem( $n_date, $n_user, $n_news ); - } - } else { - newsItem( 'now', 'Web Server', '

No current news!' ); - } - } else { - newsItem( 'now', 'Web Server', '

No news in database!' ); - } - $result = mysql_close( $conn ); - } else { - newsItem( 'Now', 'Web Server', '

Error: Could not connect to SQL server to fetch news. Please notify the server administrator.' ); - } + + Do not screw with other memeber's news entries, it is not appreciated. ?> diff --git a/index.php b/index.php index 5bb9656..e8928fa 100644 --- a/index.php +++ b/index.php @@ -10,7 +10,7 @@ tableBoxHeader( 'black', $tableHeadColor ); tableTitle( 'Latest News', 1, $tableHeadColor ); include("news_funcs.php"); - include("cur_news.php"); +
Do not screw with other member's news entries, it is not appreciated.
tableBoxFooter(); ?>