$value) { $fields[] = $value; } $fieldlist = implode(', ', $fields); $sql= 'SELECT '.$fieldlist.' FROM nw_news WHERE nw_id="'.$nw_id.'"'; if (!($result = @ mysql_query($sql, $connection))) {showerror(); } $this_news = @ mysql_fetch_array($result, MYSQL_ASSOC); tmpl1("Jane Ray"); tmpl2(); if (!$this_news['nw_title']) { $this_news['nw_title'] = $this_news['nw_head']; } echo '

'.nl2br($this_news['nw_title']).'

'; echo '
'; echo '

'.convertLinks(nl2br($this_news['nw_text'])).'

'; echo '

« return to main page

'; echo '
'; tmpl3(); ?>