本文整理汇总了PHP中DataManager::getNext方法的典型用法代码示例。如果您正苦于以下问题:PHP DataManager::getNext方法的具体用法?PHP DataManager::getNext怎么用?PHP DataManager::getNext使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataManager
的用法示例。
在下文中一共展示了DataManager::getNext方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: while
if ($i == 1) {
$class = "start";
} else {
if ($i == count($row)) {
$class .= " end";
}
}
echo '<th class="' . $class . ' top">
' . $key . '
</th>';
$i++;
}
echo '</tr>';
$sql = "SELECT * FROM " . $GLOBALS["dbcSchema"] . ".dbc_" . $_GET["dbcName"];
$res = $dataManager->executeQuery($sql, false);
while ($row = $dataManager->getNext($res)) {
//print_r($row);
echo '<tr>';
$i = 1;
foreach ($row as $cell) {
$class = "cell";
if ($i == 1) {
$class = "start";
} else {
if ($i == count($row)) {
$class .= " end";
}
}
echo ' <td class="' . $class . '">
' . $cell . '
</td>';
示例2: DataManager
<div class="ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix">
<span class="ui-dialog-title">
Documented tables
</span>
</div>
<div class="ui-dialog-content ui-widget-content" style="width: auto; height: auto; text-align: left; height: 700px; overflow:auto" id="divTables">
<div id="divList">
<ul>
<?php
$dataManager = new DataManager();
$dataManager->dbName = $_GET["database"];
$dataManager->connect();
$sql = "SELECT * FROM " . $dataManager->dbName . ".dbdocstable";
$resource = $dataManager->executeQuery($sql, false);
if ($resource) {
while ($row = $dataManager->getNext($resource)) {
echo '<li><a href="#divTab" onclick="showDetails(\'' . $row["tableName"] . '\')">' . $row["tableName"] . '</a></li>';
}
} else {
echo "No dbdocstable found for docs!";
}
$dataManager->disconnect();
?>
</ul>
<div id="divTab" style="display: none; width: 0px; height: 0px;">
</div>
</div>
</div>
</div>
</div>
<div style="display:table-cell; padding: 5px; vertical-align: top; width:75%">