本文整理汇总了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 \n <select name='fm' class='textfield01'>\n";
if ($month == '01') {
$fms01 = "selected='selected'";
$fms02 = "";
$fms03 = "";
$fms04 = "";
$fms05 = "";
$fms06 = "";
$fms07 = "";
$fms08 = "";
$fms09 = "";
示例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;
示例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'];