本文整理汇总了PHP中PDOConnection::GetValue方法的典型用法代码示例。如果您正苦于以下问题:PHP PDOConnection::GetValue方法的具体用法?PHP PDOConnection::GetValue怎么用?PHP PDOConnection::GetValue使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PDOConnection
的用法示例。
在下文中一共展示了PDOConnection::GetValue方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: PDOConnection
require_once $_SERVER['DOCUMENT_ROOT'] . '/facebook/include/ajax.require.php';
$online = new PDOConnection();
$mangaDetails = new MangaReader(array($site[STORE], $_POST['name']));
$manga['name'] = rawurlencode($_POST['name']) . '/';
foreach ($mangaDetails->getArray() as $mlist) {
if (is_file($mlist['path'])) {
list($filename, $fileextended) = explode('.', $mlist['name']);
if ($filename == 'thumb') {
$manga['thumb'] = $mangaDetails->getDomain() . $mlist['name'];
}
}
}
if (!isset($manga['thumb'])) {
$manga['thumb'] = 'http://hakko.9friend.net/images/none-thumb.jpg';
}
$manga['view'] = $online->GetValue('view', 'manga', 'mag_id', $_POST['id']);
$manga['online'] = $online->CountRow('user_online', 'mag_id', $_POST['id']);
?>
<a href="<?php
echo $online->GetValue('link', 'manga', 'mag_id', $_POST['id']);
?>
"><h2><?php
echo $_POST['name'];
?>
</h2>
<table width="230" border="0" cellpadding="2" cellspacing="0" class="manga-list">
<tr>
<td width="50"><div class="thumb-img" style="width:40px;height:40px;">
<fb:tag name="img">
<fb:tag-attribute name="src"><?php
示例2: GetBlogID
public function GetBlogID($blog)
{
return parent::GetValue('blogid', 'blog', 'title', $blog);
}
示例3: StringGroup
public function StringGroup($table, $mag_id, $tableget, $colomnget, $column, $value)
{
$item = array();
foreach (parent::ViewTableWhere($table, 'mag_id', $mag_id, 0, 0) as $group) {
$tmpName = parent::GetValue($value, $tableget, $colomnget, $group[$column]);
$found = true;
foreach ($item as $tmp) {
if ($tmp == $tmpName) {
$found = false;
}
}
if ($found) {
$item[] = $tmpName;
}
}
sort($item);
$stringGroup = '';
$itemCount = count($item);
foreach ($item as $index => $tostring) {
$stringGroup .= '<a href="' . self::BuildQuery(array('component' => 'translator', $tableget => $tostring)) . '">' . $tostring . '</a>';
if ($itemCount > $index + 1) {
$stringGroup .= ', ';
}
}
return $stringGroup;
}