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


PHP Close_To_Server函數代碼示例

本文整理匯總了PHP中Close_To_Server函數的典型用法代碼示例。如果您正苦於以下問題:PHP Close_To_Server函數的具體用法?PHP Close_To_Server怎麽用?PHP Close_To_Server使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


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

示例1: Connect_To_Server

	</ul>
</nav>
      </fieldset>
    </form>
  </header>
</div>
<!-- content -->
<div class="wrapper row2">
  <div id="status">
	<marquee behavior="scroll" direction="left" scrollamount="20"><?php 
$db_handle = Connect_To_Server();
$db_found = Connect_To_DB();
view_dhobi();
echo " And ";
view_doctor();
Close_To_Server($db_handle);
function view_dhobi()
{
    $SQL_Query = "select name from dhobi_status where present='i' limit 1";
    $result = mysql_query($SQL_Query);
    $out = mysql_fetch_assoc($result);
    $name = $out['name'];
    if ($name != "") {
        echo "Dhobi {$name} Is Present";
    } else {
        echo "No Dhobi Is Present";
    }
}
function view_doctor()
{
    $SQL_Query = "select count(*) as counter from doctor where present='i' limit 1";
開發者ID:nikamipara,項目名稱:SEN,代碼行數:31,代碼來源:Snail_mail_resident_view.php

示例2: while

echo "<td>Serviced Date</td>";
echo "<td>Serviced Time</td>";
echo "<td>Descrption</td>";
echo "<td>Wing</td>";
//echo "<td>Floor</td>";
echo "<td>Room</td>";
while ($row = mysql_fetch_array($result)) {
    $temp = $row["complaints_id"];
    echo "<tr>";
    echo "<td>" . $row["complaints_id"] . "</td>";
    echo "<td>" . $row["id"] . "</td>";
    //echo "<td>" . $row["Type"] . "</td>";
    echo "<td>" . $row["posting_date"] . "</td>";
    echo "<td>" . $row["posting_time"] . "</td>";
    echo "<td>" . $row["serviced_date"] . "</td>";
    echo "<td>" . $row["serviced_time"] . "</td>";
    echo "<td>" . $row["description"] . "</td>";
    echo "<td>" . $row["wing"] . "</td>";
    //echo "<td>" . $row["floor"] . "</td>";
    echo "<td>" . $row["room"] . "</td>";
}
?>



</body>
</html>
<?php 
//5. close connection
Close_To_Server($db);
開發者ID:nikamipara,項目名稱:SEN,代碼行數:30,代碼來源:complaints_Water_hmc_convener_view.php


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