Folder reorganize 1
This commit is contained in:
34
data/OLD/newgrtest.php
Normal file
34
data/OLD/newgrtest.php
Normal file
@@ -0,0 +1,34 @@
|
||||
<?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 AVG(wtonshr) AS rate FROM (SELECT wtonshr FROM milling ORDER BY id DESC LIMIT 60) tbl";
|
||||
$result=mysql_query($query);
|
||||
|
||||
$num=mysql_numrows($result);
|
||||
|
||||
mysql_close();
|
||||
?>
|
||||
|
||||
<?php
|
||||
$i=0;
|
||||
while ($i < $num) {
|
||||
|
||||
$f1=mysql_result($result,$i,"rate");
|
||||
?>
|
||||
<table>
|
||||
<tr>
|
||||
|
||||
<?php echo $f1; ?>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<?php
|
||||
$i++;
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user