Example #1
0
function get_comment_table($server_name, $server_port, $db_name)
{
    $commentInfo = getCommentInfo();
    $key = $server_name . ":" . $server_port . ":" . $db_name;
    if (array_key_exists($key, $commentInfo)) {
        return $commentInfo[$key];
    }
    return array();
}
Example #2
0
        </tr>
        <tr>
            <th>密码: </th>
            <td><input type=password name="password" /></td>
        </tr>
        <tr>
            <th></th>
            <td>
                <input type=submit value="查看" />
            </td>
        </tr>
    </table>
</form>

<br>
<br>
已有备注数据库表:<br>
<?php 
include "./php/mongoUtil.php";
$retArray = getCommentInfo();
foreach ($retArray as $key => $tableNameList) {
    $tableNameList = array_unique($tableNameList);
    echo "{$key} : ", implode(", ", $tableNameList), "<br>";
}
?>

<script src="./js/index.php.js"></script>
</body>

</html>