当前位置: 首页>>代码示例>>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;未经允许,请勿转载。