109 lines
6.0 KiB
PHP
109 lines
6.0 KiB
PHP
<?php
|
|
error_reporting(E_ERROR);
|
|
$username="corey";
|
|
$password="41945549";
|
|
$database="controls";
|
|
|
|
mysql_connect('127.0.0.1',$username,$password);
|
|
@mysql_select_db($database) or die( "Unable to select database");
|
|
$query = "(SELECT * FROM boilers ORDER BY id DESC LIMIT 1)";
|
|
$result=mysql_query($query);
|
|
|
|
$num=mysql_numrows($result);
|
|
|
|
mysql_close();
|
|
?>
|
|
|
|
<?php
|
|
$i=0;
|
|
while ($i < $num) {
|
|
$f103=mysql_result($result,$i,"boiler7drumlvla");
|
|
$f104=mysql_result($result,$i,"boiler7drumlvlb");
|
|
$f105=mysql_result($result,$i,"boiler7drumlvlc");
|
|
$f106=mysql_result($result,$i,"boiler7lvl");
|
|
$f107=mysql_result($result,$i,"boiler7drumpress");
|
|
$f108=mysql_result($result,$i,"boiler7feedwater");
|
|
$f109=mysql_result($result,$i,"boiler7steamflow");
|
|
$f110=mysql_result($result,$i,"boiler7livesteam");
|
|
$f118=mysql_result($result,$i,"boiler8lvl");
|
|
$f119=mysql_result($result,$i,"boiler8drumpress");
|
|
?>
|
|
|
|
<!-- vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv BOILERS vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv -->
|
|
<table class="tftable6" border="1">
|
|
<tr>
|
|
<td colspan="3" bgcolor="#121211" align="center" width="50%" style="color:#00BFFF; font-size: 30px;">BOILER 7</td>
|
|
<td colspan="3" bgcolor="#121211" align="center" width="50%" style="color:#00BFFF; font-size: 30px;">BOILER 8</td>
|
|
</tr>
|
|
<tr>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Drum LVL A</td>
|
|
<td width="150" bgcolor="#242424" align="right" style="color:green; font-size: 30px;"><?php echo $f103; ?></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">%</td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Drum LVL A</td>
|
|
<td width="150" bgcolor="#242424" align="right" style="color:green; font-size: 30px;"></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">%</td>
|
|
</tr>
|
|
<tr>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Drum LVL B</td>
|
|
<td width="150" bgcolor="#242424" align="right" style="color:green; font-size: 30px;"><?php echo $f104; ?></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">%</td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Drum LVL B</td>
|
|
<td width="150" bgcolor="#242424" align="right" style="color:green; font-size: 30px;"></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">%</td>
|
|
</tr>
|
|
<tr>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Drum LVL C</td>
|
|
<td width="150" bgcolor="#242424" align="right" style="color:green; font-size: 30px;"><?php echo $f105; ?></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">%</td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Drum LVL C</td>
|
|
<td width="150" bgcolor="#242424" align="right" style="color:green; font-size: 30px;"></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">%</td>
|
|
</tr>
|
|
<tr>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Drum LVL Avg</td>
|
|
<td width="150" bgcolor="#242424" align="right" style="color:#00d145; font-size: 30px;"><?php echo $f106; ?></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">%</td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Drum LVL Avg</td>
|
|
<td width="150" bgcolor="#242424" align="right" style="color:#00d145; font-size: 30px;"></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">%</td>
|
|
</tr>
|
|
<tr>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Drum Pressure</td>
|
|
<td width="150" bgcolor="#242424" align="right" style="color:yellow; font-size: 30px;"><?php echo $f107; ?></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Psig</td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Drum Pressure</td>
|
|
<td width="150" bgcolor="#242424" align="right" style="color:yellow; font-size: 30px;"></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Psig</td>
|
|
</tr>
|
|
<tr>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Live Steam Pressure</td>
|
|
<td width="150" bgcolor="#242424" align="right" style="color:yellow; font-size: 30px;"><?php echo $f110; ?></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">psi</td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Live Steam Pressure</td>
|
|
<td width="150" bgcolor="#242424" align="right" style="color:yellow; font-size: 30px;"></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">psi</td>
|
|
</tr>
|
|
<tr>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Feed Water Flow</td>
|
|
<td width="150" bgcolor="#242424" align="right" style="color:#19afff; font-size: 30px;"><?php echo $f108; ?></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">kpph</td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Feed Water Flow</td>
|
|
<td width="150" bgcolor="#242424" align="right" style="color:#19afff; font-size: 30px;"></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">kpph</td>
|
|
</tr>
|
|
<tr>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Steam Flow</td>
|
|
<td width="150" bgcolor="#242424" align="right" style="color:#19afff; font-size: 30px;"><?php echo $f109; ?></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">kpph</td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">Steam Flow</td>
|
|
<td width="150" bgcolor="#242424" align="right" style="color:#19afff; font-size: 30px;"></td>
|
|
<td bgcolor="#121211" align="left" style="color:#e0e0e0; font-size: 30px;">kpph</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<!-- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ END OF BOILERS ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -->
|
|
|
|
<?php
|
|
$i++;
|
|
}
|
|
?>
|