本文整理汇总了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">