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.' ); } ?>