線上書籍

Home

[981]PHP入門+XOOPS模組設計

<?php

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

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

if ($com_itemid > 0) {
  $sql="select name from ".$xoopsDB->prefix("contact")." where sn='{$com_itemid}'";
    $result=$xoopsDB->query($sql) or redirect_header($_SERVER['PHP_SELF'],3, mysql_error());
    list($name)=$xoopsDB->fetchRow($result);
    //$com_replytext=nl2br($content);
}

$com_replytitle = "給 {$name} 的留言";


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