| Server IP : 93.86.61.54 / Your IP : 216.73.216.60 Web Server : Apache/2.4.62 (Ubuntu) System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64 User : www-data ( 33) PHP Version : 8.4.22 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/projects/tablersdb/ |
Upload File : |
<!DOCTYPE
html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head> <meta http-equiv="refresh" content="30" />
<title>Untitled Document</title>
<style>
h1 {
color: green;
font-family: verdana;
font-size: 200%;
}
.table-data{
width: 1000px;
height: 400px;
margin-left: auto;
margin-right: auto;
}
.table-par{
font-family: Verdana;
font-size: 128px;
font-weight: bold;
text-align: center;
}
</style>
</style>
</head>
<body style = "background-color: beige;"></body>
<body>
<?php
include "configconn.php";
include "opendbconn.php";
$sql = "SELECT * FROM tablepanel ORDER BY time";
$result = mysqli_query($con, $sql);
while($node_name_row = $result -> fetch_assoc()) {
$time = $node_name_row['time'];
$tableid= $node_name_row['tableid'];
echo $tableid;
// switch $tableid {
// case 1: $bgc1 = "red"; break;
// case 2: $bgc2 = "red"; break;
// case 3: $bgc3 = "red"; break;
// case 4: $bgc4 = "red"; break;
// case 5: $bgc5 = "red"; break;
// case 6: $bgc6 = "red"; break;
// case 7: $bgc7 = "red"; break;
// case 8: $bgc8 = "red"; break;
// case 9: $bgc9 = "red"; break;
// case 10: $bgc10 = "red"; break;
// }
}
include "closedbconn.php";
?>
<div class='table-data'>
<table border='1' class='table-par'>
<tr height='200px'>
<td style = "width:200px;">1</td>
<td style = "width:200px;">2</td>
<td style = "width:200px;">3</td>
<td style = "width:200px;">4</td>
<td width="200px">5</td>
</tr>
<tr height = "200px">
<td width="200px">6</td>
<td width="200px">7</td>
<td width="200px">8</td>
<td width="200px">9</td>
<td width="200px">10</td>
</tr>
</table>
</div>
</body>
</html>