本文整理汇总了PHP中DataManager::executeQuery方法的典型用法代码示例。如果您正苦于以下问题:PHP DataManager::executeQuery方法的具体用法?PHP DataManager::executeQuery怎么用?PHP DataManager::executeQuery使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataManager
的用法示例。
在下文中一共展示了DataManager::executeQuery方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: DataManager
<div style="display:table-cell; padding: 5px; vertical-align: top; width:25%">
<div class="ui-dialog ui-widget ui-widget-content ui-corner-all" style="position: relative; margin-bottom: 10px;">
<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>
示例2: foreach
} else {
//echo '<p>Warning! Infommation not avaiable. Add into database</p>';
echo "<b>**no DBC information got.</b>";
}
//$notes = str_replace($found, "TABELLA!",$notes);
}
if (isset($GLOBALS["dbcSchema"]) && $GLOBALS["dbcSchema"] != "") {
?>
<br /><br />
<h3>Content readed from database</h3>
<br />
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tblFind">
<?php
$sql = "SELECT * FROM " . $GLOBALS["dbcSchema"] . ".dbc_" . $_GET["dbcName"];
$row = $dataManager->executeQuery($sql);
if ($row) {
//print_r($row);
echo '<tr>';
$i = 1;
foreach ($row as $key => $value) {
$class = "cell";
if ($i == 1) {
$class = "start";
} else {
if ($i == count($row)) {
$class .= " end";
}
}
echo '<th class="' . $class . ' top">
' . $key . '
示例3: DataManager
$dataManager = new DataManager();
$dataManager->dbName = $_GET["database"];
$dataManager->connect();
$editType = $_GET["type"];
$editRowId = $_GET["id"];
if (isset($editRowId)) {
$sql = "";
switch ($editType) {
case "dbdocstable":
break;
case "dbdocsubstable":
break;
case "dbdocsfields":
if (!isset($_GET["applyModify"])) {
$sql = "SELECT * FROM " . $dataManager->dbName . ".dbdocsfields WHERE fieldId = " . chkVars($editRowId);
$row = $dataManager->executeQuery($sql);
if ($row) {
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tblFind">
<tr>
<th class="start top">
Field ID
</th>
<td class="cell end top">
<?php
echo $editRowId;
?>
</td>
</tr>
<tr>
<th class="start">