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


PHP mysqlquery::usequery方法代碼示例

本文整理匯總了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 
開發者ID:novnan,項目名稱:meiju,代碼行數:31,代碼來源:ListField.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">
開發者ID:novnan,項目名稱:meiju,代碼行數:31,代碼來源:ChangeTable.php


注:本文中的mysqlquery::usequery方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。