當前位置: 首頁>>代碼示例>>PHP>>正文


PHP DAO::fetchThreadContent方法代碼示例

本文整理匯總了PHP中DAO::fetchThreadContent方法的典型用法代碼示例。如果您正苦於以下問題:PHP DAO::fetchThreadContent方法的具體用法?PHP DAO::fetchThreadContent怎麽用?PHP DAO::fetchThreadContent使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在DAO的用法示例。


在下文中一共展示了DAO::fetchThreadContent方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: displayFollowUp

function displayFollowUp()
{
    $dao = new DAO();
    $rs = $dao->fetchFollowUpIDs($_GET['tid']);
    foreach ($rs as $rows) {
        foreach ($rows as $value) {
            echo '<div class="container">';
            echo '<p> To:' . $dao->fetchThreadName($value) . '&nbsp Reply By ' . $dao->fetchUserName($dao->fetchUserIDByThreadID($value)) . '<br>' . $dao->fetchThreadContent($value) . '</p>';
            echo '</div>';
        }
    }
}
開發者ID:a4501150,項目名稱:CS425,代碼行數:12,代碼來源:thread.php

示例2: Q2

function Q2()
{
    $dao = new DAO();
    $q = "SELECT * FROM (SELECT ID FROM THREAD WHERE PARENTTHREADID IS NULL order by id DESC) WHERE ROWNUM <=3 ";
    $stmt = oci_parse($dao->con, $q);
    oci_execute($stmt, OCI_DEFAULT);
    oci_fetch_all($stmt, $rs);
    foreach ($rs as $rows) {
        echo "";
        foreach ($rows as $col_values) {
            echo "Comment/discussion Content: " . $dao->fetchThreadContent($col_values) . '&nbsp &nbsp ThreadName: ' . $dao->fetchThreadName($col_values) . '<br>';
        }
    }
}
開發者ID:a4501150,項目名稱:CS425,代碼行數:14,代碼來源:QUERIES.php

示例3: __autoload

function __autoload($class_name)
{
    $path = str_replace('_', '/', $class_name);
    require_once $path . '.class.php';
}
session_start();
$tid = array_key_exists('tid', $_REQUEST) ? $_REQUEST['tid'] : null;
$ttid = array_key_exists('ttid', $_REQUEST) ? $_REQUEST['ttid'] : null;
if ($tid != null) {
    $rs = getThreadContent($_REQUEST['tid']);
    $dao = new DAO();
    foreach ($rs as $rows) {
        echo "";
        foreach ($rows as $col_values) {
            echo "Comment/discussion Content: " . $dao->fetchThreadContent($col_values) . '&nbsp &nbsp ThreadName: ' . $dao->fetchThreadName($col_values) . '<br>';
        }
    }
}
if ($ttid != null) {
    $dao = new DAO();
    $rs = getStaffID($_REQUEST['ttid']);
    foreach ($rs as $rows) {
        echo "";
        foreach ($rows as $col_values) {
            echo "Staffs on duty on mondays: " . $dao->fetchStaffName($col_values) . '&nbsp &nbsp type: ' . $dao->fetchStaffTypeName($dao->fetchstaffType($col_values)) . ' schedule: ' . $dao->fetchStaffStartTime($col_values) . '&nbsp' . $dao->fetchStaffEndTime($col_values) . '<br>';
        }
    }
}
function getStaffID($tid)
{
開發者ID:a4501150,項目名稱:CS425,代碼行數:30,代碼來源:getContent.php


注:本文中的DAO::fetchThreadContent方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。