本文整理汇总了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) . '  Reply By ' . $dao->fetchUserName($dao->fetchUserIDByThreadID($value)) . '<br>' . $dao->fetchThreadContent($value) . '</p>';
echo '</div>';
}
}
}
示例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) . '    ThreadName: ' . $dao->fetchThreadName($col_values) . '<br>';
}
}
}
示例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) . '    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) . '    type: ' . $dao->fetchStaffTypeName($dao->fetchstaffType($col_values)) . ' schedule: ' . $dao->fetchStaffStartTime($col_values) . ' ' . $dao->fetchStaffEndTime($col_values) . '<br>';
}
}
}
function getStaffID($tid)
{