if ($action=="viewarticle") { $result2 = $DB_site->query("SELECT title, author, date, content FROM mytable_content WHERE artid=$artid"); if ($row = $DB_site->fetch_array($result2)) { $title=$row['title']; $author=$row['author']; $date=$row['date']; $content=$row['content']; eval("dooutput(\"".gettemplate('myhack_viewart')."\");"); } }