本文整理匯總了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%">