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


PHP database2::myHost方法代碼示例

本文整理匯總了PHP中database2::myHost方法的典型用法代碼示例。如果您正苦於以下問題:PHP database2::myHost方法的具體用法?PHP database2::myHost怎麽用?PHP database2::myHost使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在database2的用法示例。


在下文中一共展示了database2::myHost方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: date

.style1 {font-family: Arial;font-size: 16px;font-weight: bold;color: #000000;}
.style2 {font-family: Arial;font-size: 14px;font-weight: bold;color: #000000;}
.style3 {font-family: Arial;font-size: 13px;font-weight: bold;color: #000000;}
.style4 {font-family: Arial;font-size: 12px;font-weight: bold;color: #000000;}
.textfield01 {font-family: Arial;font-size: 12px;font-weight: bold;color: #000000;background-color: #FFFFFF;border: 1px solid #000000;height: 25px;}
.button01 {font-family: Arial;font-size: 14px;font-weight: bold;color: #000000;background-color: #FFFFFF;border: 1px solid #000000;height: 25px;}
-->
</style>
</head>

<body onload="placeFocus()">
<?php 
include "../../myDatabase2.php";
$cuz = new database2();
$username = $_GET['username'];
mysql_connect($cuz->myHost(), $cuz->getUser(), $cuz->getPass());
mysql_select_db($cuz->getDB());
$year = date("Y");
$month = date("m");
$day = date("d");
echo "\n<div align='center'><table width='550' border='1' cellspacing='0' cellpadding='0' bordercolor='#000000'>\n  <tr><form name='Submit' method='get' action='CollectionReport.php'>\n    <td><table width='550' border='0' cellspacing='0' cellpadding='0'>\n      <tr>\n        <td colspan='3' height='30'></td>\n      </tr>\n      <tr>\n        <td width='30'></td>\n        <td width='490'><table width='490' border='0' cellspacing='0' cellpadding='0'>\n          <tr>\n            <td width='100'><div align='left' class='style4'>Select Date</div></td>\n            <td width='390'><div align='left' class='style4'>\n              From&nbsp;\n              <select name='fm' class='textfield01'>\n";
if ($month == '01') {
    $fms01 = "selected='selected'";
    $fms02 = "";
    $fms03 = "";
    $fms04 = "";
    $fms05 = "";
    $fms06 = "";
    $fms07 = "";
    $fms08 = "";
    $fms09 = "";
開發者ID:rickyx12,項目名稱:protacio,代碼行數:31,代碼來源:CollectionReportSD.php

示例2:

.style1 {font-family: Arial;font-size: 16px;font-weight: bold;color: #000000;}
.style2 {font-family: Arial;font-size: 14px;font-weight: bold;color: #000000;}
.style3 {font-family: Arial;font-size: 13px;font-weight: bold;color: #000000;}
.style4 {font-family: Arial;font-size: 12px;font-weight: bold;color: #000000;}
.textfield01 {font-family: Arial;font-size: 12px;font-weight: bold;color: #000000;background-color: #FFFFFF;border: 1px solid #000000;}
.button01 {font-family: Arial;font-size: 12px;font-weight: bold;color: #000000;background-color: #FFFFFF;border: 1px solid #000000;}
tr:hover { background-color:yellow;color:black;}
-->
</style>
</head>

<body onload="placeFocus()">
<?php 
include "../../../myDatabase2.php";
$cuz = new database2();
$GLOBALS["___mysqli_ston"] = mysqli_connect($cuz->myHost(), $cuz->getUser(), $cuz->getPass());
(bool) mysqli_query($GLOBALS["___mysqli_ston"], "USE " . $cuz->getDB());
$username = $_GET['username'];
$fy = $_GET['fy'];
$fm = $_GET['fm'];
$fd = $_GET['fd'];
$ty = $_GET['ty'];
$tm = $_GET['tm'];
$td = $_GET['td'];
$fth = $_GET['fth'];
$ftm = $_GET['ftm'];
$fts = $_GET['fts'];
$tth = $_GET['tth'];
$ttm = $_GET['ttm'];
$tts = $_GET['tts'];
$fdate = $fy . "-" . $fm . "-" . $fd;
開發者ID:rickyx12,項目名稱:protacio,代碼行數:31,代碼來源:CollectionReport.php

示例3:

	font-family: Arial;
	font-size: 12px;
	font-weight: bold;
	color: #000000;
	background-color: #FFFFFF;
	border: 1px solid #000000;
}
-->
</style>
</head>

<body onload="placeFocus()">
<?php 
include "../myDatabase2.php";
$ro = new database2();
mysql_connect($ro->myHost(), $ro->getUser(), $ro->getPass());
mysql_select_db($ro->getDB());
$status = $_GET['status'];
$reportName = $_GET['reportName'];
$module = $_GET['module'];
$month = $_GET['month'];
$day = $_GET['day'];
$year = $_GET['year'];
$fromTime_hour = $_GET['fromTime_hour'];
$fromTime_minutes = $_GET['fromTime_minutes'];
$fromTime_seconds = $_GET['fromTime_seconds'];
$toTime_hour = $_GET['toTime_hour'];
$toTime_minutes = $_GET['toTime_minutes'];
$toTime_seconds = $_GET['toTime_seconds'];
$username = $_GET['username'];
$cutoff = $_GET['cutoff'];
開發者ID:rickyx12,項目名稱:protacio,代碼行數:31,代碼來源:SortCollectionReport.php


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