本文整理汇总了PHP中database2::listRoom方法的典型用法代码示例。如果您正苦于以下问题:PHP database2::listRoom方法的具体用法?PHP database2::listRoom怎么用?PHP database2::listRoom使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类database2
的用法示例。
在下文中一共展示了database2::listRoom方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<?php
include "../../myDatabase2.php";
$ro = new database2();
echo "<div align='center'>";
echo "";
echo "<table border='1' cellspacing='0' rules='all' width='auto'>";
echo "<tr>";
echo "<th><b>Beds</b></th>";
echo "</tr>";
echo "<tr>";
echo "<td> <B>ER</b></td>";
$ro->listRoom("1st floor");
echo "</tr>";
echo "<tr>";
echo "<td> <B>2nd Floor</b></td>";
$ro->listRoom("2nd floor");
echo "</tr>";
echo "<Tr>";
echo "<td> <font size=2><b>" . $ro->listRoom_total . " Patients</b></font></tD>";
echo "</tr>";
echo "</table>";
echo "</div>";
示例2:
<?php
include "../../myDatabase2.php";
$ro = new database2();
echo "";
echo "<table border='1' cellspacing='0' rules='all' width='auto'>";
echo "<tr>";
echo "<th><b>Beds</b></th>";
echo "</tr>";
echo "<tr>";
echo "<td> <B>3rd Floor</b></td>";
$ro->listRoom("3rd floor");
echo "</tr>";
echo "<tr>";
echo "<td> <B>2nd Floor</b></td>";
$ro->listRoom("2nd floor");
echo "</tr>";
echo "<Tr>";
echo "<td> <font size=2><b>" . $ro->listRoom_total . " Patients</b></font></tD>";
echo "</tr>";
echo "</table>";