<?php include_once '../../mainfile.php'; include 'function.php'; $com_itemid = isset($_GET['com_itemid']) ? intval($_GET['com_itemid']) : 0; if ($com_itemid > 0) { $sql="select `page_title` , `page_content` from ".$xoopsDB->prefix("tad_ebook_page")." where `page_sn` ='{$com_itemid}'"; $result=$xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error()); list($com_replytitle,$com_replytext)=$xoopsDB->fetchRow($result); } include XOOPS_ROOT_PATH.'/include/comment_new.php'; ?>