Folder reorganize 1
This commit is contained in:
36
data/OLD/totgroundprev.php
Normal file
36
data/OLD/totgroundprev.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?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 DATE_FORMAT(Z_TIMESTAMP,'%Y-%m-%d') AS date, PREVTONS FROM milling GROUP BY PREVTONS ORDER BY id DESC LIMIT 10";
|
||||
$result=mysql_query($query);
|
||||
|
||||
$num=mysql_numrows($result);
|
||||
|
||||
mysql_close();
|
||||
?>
|
||||
|
||||
<?php
|
||||
$i=0;
|
||||
while ($i < $num) {
|
||||
|
||||
$f1=mysql_result($result,$i,"date");
|
||||
$f2=mysql_result($result,$i,"PREVTONS");
|
||||
?>
|
||||
<table border="1" style="border-collapse: collapse; margin: 0px auto;">
|
||||
<tr>
|
||||
|
||||
<td><?php echo $f1; ?></td>
|
||||
<td><?php echo $f2; ?></td>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
$i++;
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user