当前位置: 首页>>代码示例>>PHP>>正文


PHP DataManager::executeQuery方法代码示例

本文整理汇总了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>
开发者ID:Corsol,项目名称:webDBDocs,代码行数:31,代码来源:dbStructure.php

示例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 . '
开发者ID:Corsol,项目名称:webDBDocs,代码行数:31,代码来源:dbcContent.php

示例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">
开发者ID:Corsol,项目名称:webDBDocs,代码行数:31,代码来源:editData.php


注:本文中的DataManager::executeQuery方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。