Folder reorganize 1
This commit is contained in:
16
data/OLD/wgravginsert.php
Normal file
16
data/OLD/wgravginsert.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?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 = "INSERT INTO output (wmillavgrate) SELECT AVG(wtonshr) FROM (SELECT wtonshr FROM milling ORDER BY id DESC LIMIT 600) AS rate";
|
||||
$result=mysql_query($query);
|
||||
|
||||
$num=mysql_numrows($result);
|
||||
|
||||
mysql_close();
|
||||
?>
|
||||
Reference in New Issue
Block a user