本文整理匯總了PHP中mysqlquery::usequery方法的典型用法代碼示例。如果您正苦於以下問題:PHP mysqlquery::usequery方法的具體用法?PHP mysqlquery::usequery怎麽用?PHP mysqlquery::usequery使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類mysqlquery
的用法示例。
在下文中一共展示了mysqlquery::usequery方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: ChangeAutoField
$loginadminstyleid = $lur['adminstyleid'];
//ehash
$ecms_hashur = hReturnEcmsHashStrAll();
//驗證權限
CheckLevel($logininid, $loginin, $classid, "dbdata");
//數據庫
$mydbname = RepPostVar($_GET['mydbname']);
$mytbname = RepPostVar($_GET['mytbname']);
if (empty($mydbname) || empty($mytbname)) {
printerror("NotChangeBakTable", "history.go(-1)");
}
$form = RepPostVar($_GET['form']);
if (empty($form)) {
$form = 'ebakchangetb';
}
$usql = $empire->usequery("use `{$mydbname}`");
$sql = $empire->query("SHOW FIELDS FROM `" . $mytbname . "`");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>表字段列表</title>
<link href="../adminstyle/<?php
echo $loginadminstyleid;
?>
/adminstyle.css" rel="stylesheet" type="text/css">
<script>
function ChangeAutoField(f)
{
var tbname="<?php
示例2: hReturnEcmsHashStrAll
$logininid = $lur['userid'];
$loginin = $lur['username'];
$loginrnd = $lur['rnd'];
$loginlevel = $lur['groupid'];
$loginadminstyleid = $lur['adminstyleid'];
//ehash
$ecms_hashur = hReturnEcmsHashStrAll();
//驗證權限
CheckLevel($logininid, $loginin, $classid, "dbdata");
$bakpath = $public_r['bakdbpath'];
$mydbname = RepPostVar($_GET['mydbname']);
if (empty($mydbname)) {
printerror("NotChangeBakTable", "history.go(-1)");
}
//選擇數據庫
$udb = $empire->usequery("use `" . $mydbname . "`");
//查詢
$and = "";
$keyboard = RepPostVar($_GET['keyboard']);
$sear = RepPostStr($_GET['sear'], 1);
if (empty($sear)) {
$keyboard = $dbtbpre;
}
if ($keyboard) {
$and = " LIKE '%{$keyboard}%'";
}
$sql = $empire->query("SHOW TABLE STATUS" . $and);
//存放目錄
$mypath = $mydbname . "_" . date("YmdHis");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">