query($sql, array($id, $language)); if( DB::isError($res) ) die( 'Bad ID' ); include_once $enroot . '/inc/functions.inc'; include_once $enroot . '/inc/fn_ptcode.inc'; include_once $enroot . "/gen/news/inc/categories.$language.inc"; $header = $news_categories[ $id ][ 'title' ]; $subheader = str_replace( '{1}', $header, 'All news from the {1} category' ); $submenu = $DOCUMENT_ROOT . '/submenu/main.inc'; $NEWSICON = $news_categories[ $id ][ 'icon' ]; $NEWSICON = ''. static_img( "/images/newsicons/$NEWSICON.gif", $NEWSICON ).''; include_once $enroot . '/inc/header.inc'; function newsitem( $row ) { global $distribution; $title = ptcode_to_html( $row->title, $distribution ); $article = ptcode_to_html( $row->article, $distribution ); $date = date( 'Y-m-d', strtotime($row->date) ); echo <<$title
$article
$row->author $date

EOD; } while( $row =& $res->fetchRow(DB_FETCHMODE_OBJECT) ) newsitem($row); ?>

Return to Poker News