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


PHP mysqlquery::getrow方法代碼示例

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


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

示例1: getWebcellTitle

 function getWebcellTitle($arg_item_id)
 {
     $mysql = new mysqlquery();
     $query = "SELECT webcell_title\r\n\t\t          FROM {$_SESSION['RealS_prefix']}webcells\r\n\t\t          \tINNER JOIN {$_SESSION['RealS_prefix']}items ON item_webcell = webcell_id\r\n\t\t          WHERE item_id = " . $mysql->escape_value($arg_item_id, 'int');
     if ($row = $mysql->getrow($query)) {
         return $row['webcell_title'];
     }
 }
開發者ID:nadavkav,項目名稱:MoodleTAO,代碼行數:8,代碼來源:userviews_class.php

示例2: userviews

<?php

//----------------------------------------------------------------------------------------------
// Desc: Gets a mentor's comment based on a success criteria
// Depd: This page is an AJAX snipplet
//----------------------------------------------------------------------------------------------
// Gimme libraries
require_once "../../config.php";
include_once 'includes/rlsmart/header.php';
require_once 'userviews_class.php';
require_once 'classes/item/Comments.class.php';
require_once 'classes/class_text_editor.php';
$userview = new userviews();
$parent_data = $userview->findParent($_GET['item_id'], "rafl");
if (strlen($_GET['share_id'])) {
    $userview->checkSharedRights($_GET['share_id']);
} else {
    $userview->checkViewRights();
}
$mysql = new mysqlquery();
// Gimme the evidence item id
$sql = "SELECT {$_SESSION['RealS_prefix']}items.item_id AS evidence_item_id\r\n\t        FROM {$_SESSION['RealS_prefix']}items\r\n\t        \tINNER JOIN {$_SESSION['RealS_prefix']}webcells ON {$_SESSION['RealS_prefix']}items.item_webcell = {$_SESSION['RealS_prefix']}webcells.webcell_id\r\n\t        WHERE {$_SESSION['RealS_prefix']}items.item_parent_item = " . $mysql->escape_value($_GET['success_id'], "int") . "\r\n\t        \tAND {$_SESSION['RealS_prefix']}items.item_default_type = 6";
$row = $mysql->getrow($sql);
// Gimme the mentor's comments on the evidence
$obj_comment = new rs_itemComments($mysql, 1, 'rafl', $_GET['share_id'], $parent_data['item_id'], $row['evidence_item_id'], 'layouts/rafl_css.php');
//$obj_comment->renderSupportingJavascript();
echo $obj_comment->getCommentHtml($userview->shareComment);
開發者ID:nadavkav,項目名稱:MoodleTAO,代碼行數:27,代碼來源:get_evidence_comment.php


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