本文整理汇总了PHP中undomq函数的典型用法代码示例。如果您正苦于以下问题:PHP undomq函数的具体用法?PHP undomq怎么用?PHP undomq使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了undomq函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: err
}
///////////////////////////////////////// DEFINITIONS
$remote = $_SERVER["REMOTE_ADDR"];
if (!empty($ACCEPTIP)) {
if ($remote != '127.0.0.1' && $remote != $ACCEPTIP) {
err("Unauthorised client: '{$remote}'");
}
}
if (empty($_REQUEST['sql'])) {
err('No SQL');
}
$conn =& ADONewConnection($driver);
if (!$conn->Connect($host, $uid, $pwd, $database)) {
err($conn->ErrorNo() . $sep . $conn->ErrorMsg());
}
$sql = undomq($_REQUEST['sql']);
if (isset($_REQUEST['fetch'])) {
$ADODB_FETCH_MODE = $_REQUEST['fetch'];
}
if (isset($_REQUEST['nrows'])) {
$nrows = $_REQUEST['nrows'];
$offset = isset($_REQUEST['offset']) ? $_REQUEST['offset'] : -1;
$rs = $conn->SelectLimit($sql, $nrows, $offset);
} else {
$rs = $conn->Execute($sql);
}
if ($rs) {
//$rs->timeToLive = 1;
echo _rs2serialize($rs, $conn, $sql);
$rs->Close();
} else {
开发者ID:vincseize,项目名称:GDC,代码行数:31,代码来源:server.php
示例2: err
}
///////////////////////////////////////// DEFINITIONS
$remote = $HTTP_SERVER_VARS["REMOTE_ADDR"];
if (empty($HTTP_GET_VARS['sql'])) {
err('No SQL');
}
if (!empty($ACCEPTIP)) {
if ($remote != '127.0.0.1' && $remote != $ACCEPTIP) {
err("Unauthorised client: '{$remote}'");
}
}
$conn =& ADONewConnection($driver);
if (!$conn->Connect($host, $uid, $pwd, $database)) {
err($conn->ErrorNo() . $sep . $conn->ErrorMsg());
}
$sql = undomq($HTTP_GET_VARS['sql']);
if (isset($HTTP_GET_VARS['fetch'])) {
$ADODB_FETCH_MODE = $HTTP_GET_VARS['fetch'];
}
if (isset($HTTP_GET_VARS['nrows'])) {
$nrows = $HTTP_GET_VARS['nrows'];
$offset = isset($HTTP_GET_VARS['offset']) ? $HTTP_GET_VARS['offset'] : -1;
$rs = $conn->SelectLimit($sql, $nrows, $offset);
} else {
$rs = $conn->Execute($sql);
}
if ($rs) {
//$rs->timeToLive = 1;
echo _rs2serialize($rs, $conn, $sql);
$rs->Close();
} else {
开发者ID:noikiy,项目名称:owaspbwa,代码行数:31,代码来源:server.php
示例3: err
}
///////////////////////////////////////// DEFINITIONS
$remote = $_SERVER["REMOTE_ADDR"];
if (empty($_GET['sql'])) {
err('No SQL');
}
if (!empty($ACCEPTIP)) {
if ($remote != '127.0.0.1' && $remote != $ACCEPTIP) {
err("Unauthorised client: '{$remote}'");
}
}
$conn =& ADONewConnection($driver);
if (!$conn->Connect($host, $uid, $pwd, $database)) {
err($conn->ErrorNo() . $sep . $conn->ErrorMsg());
}
$sql = undomq($_GET['sql']);
if (isset($_GET['fetch'])) {
$ADODB_FETCH_MODE = $_GET['fetch'];
}
if (isset($_GET['nrows'])) {
$nrows = $_GET['nrows'];
$offset = isset($_GET['offset']) ? $_GET['offset'] : -1;
$rs = $conn->SelectLimit($sql, $nrows, $offset);
} else {
$rs = $conn->Execute($sql);
}
if ($rs) {
//$rs->timeToLive = 1;
echo _rs2serialize($rs, $conn, $sql);
$rs->Close();
} else {
开发者ID:BGCX067,项目名称:ezpdo2-svn-to-git,代码行数:31,代码来源:server.php
示例4: err
}
///////////////////////////////////////// DEFINITIONS
$remote = $_SERVER["REMOTE_ADDR"];
if (!empty($ACCEPTIP)) {
if ($remote != '127.0.0.1' && $remote != $ACCEPTIP) {
err("Unauthorised client: '{$remote}'");
}
}
if (empty($_REQUEST['sql'])) {
err('No SQL');
}
$conn =& ADONewConnection($driver);
if (!$conn->Connect($host, $uid, $pwd, $database)) {
err($conn->ErrorNo() . $sep . $conn->ErrorMsg());
}
$sql = htmlspecialchars(undomq($_REQUEST['sql']), ENT_QUOTES);
if (isset($_REQUEST['fetch'])) {
$ADODB_FETCH_MODE = $_REQUEST['fetch'];
}
if (isset($_REQUEST['nrows'])) {
$nrows = $_REQUEST['nrows'];
$offset = isset($_REQUEST['offset']) ? $_REQUEST['offset'] : -1;
$rs = $conn->SelectLimit($sql, $nrows, $offset);
} else {
$rs = $conn->Execute($sql);
}
if ($rs) {
//$rs->timeToLive = 1;
echo _rs2serialize($rs, $conn, $sql);
$rs->Close();
} else {
开发者ID:RikaFujiwara,项目名称:NetCommons2,代码行数:31,代码来源:server.php
示例5: error_reporting
<?php
/**
* (c) 2000, 2001 Remistech Sdn Bhd. All Rights Reserved.
* Developed by John Lim
* Licensed to Natsoft (M) Sdn Bhd to distribute and support. Refer to LICENSE document.
*/
include "./init.php";
include ADODB_DIR . "/tohtml.inc.php";
error_reporting(63);
$sql = isset($HTTP_GET_VARS['sql']) ? $HTTP_GET_VARS['sql'] : '';
$sql = undomq($sql);
?>
<html>
<head>
<title></title>
</head>
<SCRIPT>
function fetchdb()
{
var at=document.getdriver.drivers.selectedIndex;
var dr = document.getdriver.drivers.options[at].text;
window.location.href = 'sql.php?driver='+escape(dr)+'&rnd='+Math.random()
}
</SCRIPT>
<body bgcolor=white>
<FORM name=getdriver> <b>Database</b>
<?php
开发者ID:qoire,项目名称:portal,代码行数:31,代码来源:sql.php
注:本文中的undomq函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论