[Openfirst-cvscommit] news viewnews.php,1.1.1.1,1.2
Brought to you by:
xtimg
From: <xt...@us...> - 2003-06-28 14:39:39
|
Update of /cvsroot/openfirst/news In directory sc8-pr-cvs1:/tmp/cvs-serv4884 Modified Files: viewnews.php Log Message: Convert news module to proper coding standards and add include to MySQL scripts Index: viewnews.php =================================================================== RCS file: /cvsroot/openfirst/news/viewnews.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** viewnews.php 15 May 2003 11:00:04 -0000 1.1.1.1 --- viewnews.php 28 Jun 2003 14:39:36 -0000 1.2 *************** *** 34,53 **** // be contacted via the feedback form. $query = mysql_query("SELECT * FROM ofirst_news ORDER BY ID DESC LIMIT $limit;"); ! if (mysql_num_rows($query) != 0){ while($news = mysql_fetch_object($query)){ ! echo(" ! <p><strong>$news->title</strong> ! <br />Posted on $news->date by $news->poster ! <br />$news->news ! </p>"); } } else { ! echo("There is not yet any ! news."); } ! return(0); } ?> --- 34,51 ---- // be contacted via the feedback form. $query = mysql_query("SELECT * FROM ofirst_news ORDER BY ID DESC LIMIT $limit;"); ! if (mysql_num_rows($query) != 0){ while($news = mysql_fetch_object($query)){ ! echo("<p><strong>$news->title</strong> ! <br />Posted on $news->date by $news->poster ! <br />$news->news ! </p>"); } } else { ! echo("There is not yet any news."); } ! return(0); } ?> |