:::

14-6 上課範例:comment_new.php

<?php

include '../../mainfile.php';

$com_itemid = isset($_GET['com_itemid']) ? intval($_GET['com_itemid']) : 0;

if ($com_itemid > 0) {
  $sql="select note_title,note_content from ".$xoopsDB->prefix("tad_notes")." where note_sn='{$com_itemid}'";
	$result=$xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error());
	list($title,$com_replytext)=$xoopsDB->fetchRow($result);
}

$com_replytitle = "RE:{$title}";

$myts =& MyTextSanitizer::getInstance();
$com_replytitle = $myts->htmlSpecialChars($com_replytitle);


include XOOPS_ROOT_PATH.'/include/comment_new.php';
?>

:::

搜尋

QR Code 區塊

https%3A%2F%2Fwww.tad0616.net%2Fmodules%2Ftad_book3%2Fpage.php%3Ftbsn%3D22%26tbdsn%3D645

書籍目錄

展開 | 闔起

線上使用者

34人線上 (12人在瀏覽線上書籍)

會員: 0

訪客: 34

更多…