本文整理汇总了PHP中PMA_sqlQueryForm函数的典型用法代码示例。如果您正苦于以下问题:PHP PMA_sqlQueryForm函数的具体用法?PHP PMA_sqlQueryForm怎么用?PHP PMA_sqlQueryForm使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PMA_sqlQueryForm函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
$msg->display();
}
// Export as SQL dump
if (isset($_REQUEST['report_export']) && $_REQUEST['export_type'] == 'sqldump') {
$new_query = "# " . $strTrackingYouCanExecute . "\n" . "# " . $strTrackingCommentOut . "\n" . "\n" . "CREATE database IF NOT EXISTS pma_temp_db; \n" . "USE pma_temp_db; \n" . "\n";
foreach ($entries as $entry) {
$new_query .= $entry['statement'];
}
$msg = PMA_Message::success($strTrackingSQLExported);
$msg->display();
$db_temp = $db;
$table_temp = $table;
$db = $table = '';
$GLOBALS['js_include'][] = 'functions.js';
require_once './libraries/sql_query_form.lib.php';
PMA_sqlQueryForm($new_query, 'sql');
$db = $db_temp;
$table = $table_temp;
}
/*
* Schema snapshot
*/
if (isset($_REQUEST['snapshot'])) {
?>
<h3><?php
echo $strTrackingStructureSnapshot;
?>
[<a href="tbl_tracking.php?<?php
echo $url_query;
?>
"><?php
示例2: PMA_sqlQueryForm
require 'libraries/tbl_common.inc.php';
$url_query .= '&goto=tbl_sql.php&back=tbl_sql.php';
require_once 'libraries/sql_query_form.lib.php';
$err_url = 'tbl_sql.php' . $err_url;
// After a syntax error, we return to this script
// with the typed query in the textarea.
$goto = 'tbl_sql.php';
$back = 'tbl_sql.php';
/**
* Get table information
*/
require_once 'libraries/tbl_info.inc.php';
/**
* Query box, bookmark, insert data from textfile
*/
PMA_sqlQueryForm(
true, false,
isset($_REQUEST['delimiter']) ? htmlspecialchars($_REQUEST['delimiter']) : ';'
);
/**
* Displays the footer
*/
require 'libraries/footer.inc.php';
?>
示例3: PMA_sqlQueryForm
*
*/
require_once './libraries/common.inc.php';
/**
* Runs common work
*/
require './libraries/db_common.inc.php';
require_once './libraries/sql_query_form.lib.php';
// The Back link after a syntax error will return to this script
// with the typed query in the textarea.
$goto = 'db_sql.php';
$back = 'db_sql.php';
/**
* Gets informations about the database and, if it is empty, move to the
* "db_structure.php" script where table can be created
*/
require './libraries/db_info.inc.php';
if ($num_tables == 0 && empty($db_query_force)) {
$sub_part = '';
$is_info = TRUE;
require './db_structure.php';
exit;
}
/**
* Query box, bookmark, insert data from textfile
*/
PMA_sqlQueryForm(true, false, isset($_REQUEST['delimiter']) ? $_REQUEST['delimiter'] : ';');
/**
* Displays the footer
*/
require_once './libraries/footer.inc.php';
示例4: PMA_sqlQueryForm
<?php
/* $Id: tbl_properties.php,v 2.11 2006/02/04 18:37:47 lem9 Exp $ */
// vim: expandtab sw=4 ts=4 sts=4:
require_once './libraries/common.lib.php';
/**
* Runs common work
*/
require './libraries/tbl_properties_common.php';
$url_query .= '&goto=tbl_properties.php&back=tbl_properties.php';
require_once './libraries/sql_query_form.lib.php';
$err_url = 'tbl_properties.php' . $err_url;
$goto = 'tbl_properties.php';
$back = 'tbl_properties.php';
/**
* Get table information
*/
require_once './libraries/tbl_properties_table_info.inc.php';
/**
* Displays top menu links
*/
require_once './libraries/tbl_properties_links.inc.php';
/**
* Query box, bookmark, insert data from textfile
*/
PMA_sqlQueryForm();
/**
* Displays the footer
*/
require_once './libraries/footer.inc.php';
示例5: PMA_getTabs
require_once './libraries/header_http.inc.php';
require_once './libraries/header_meta_style.inc.php';
require_once './libraries/header_scripts.inc.php';
?>
</head>
<body id="bodyquerywindow">
<div id="querywindowcontainer">
<?php
if ($tabs) {
echo PMA_getTabs($tabs, array());
unset($tabs);
}
PMA_sqlQueryForm($query_to_display, $querydisplay_tab);
// Hidden forms and query frame interaction stuff
$_sql_history = PMA_getHistory($GLOBALS['cfg']['Server']['user']);
if (! empty($_sql_history)
&& ($querydisplay_tab == 'history' || $querydisplay_tab == 'full')) {
$tab = $querydisplay_tab != 'full' ? 'sql' : 'full';
echo $GLOBALS['strQuerySQLHistory'] . ':<br />' . "\n"
.'<ul>';
foreach ($_sql_history as $query) {
echo '<li>' . "\n";
// edit link
$url_params = array(
'querydisplay_tab' => $tab,