當前位置: 首頁>>代碼示例>>PHP>>正文


PHP undomq函數代碼示例

本文整理匯總了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;未經允許,請勿轉載。