Folder reorganize 1
This commit is contained in:
19
includes/dumptimew2.php
Normal file
19
includes/dumptimew2.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
include("../dbinfo.php");
|
||||
|
||||
$con=mysqli_connect($host,$username,$password,$database);
|
||||
$query = "SELECT TIMEDIFF ((SELECT date FROM plc GROUP BY totwest2 ORDER BY id DESC LIMIT 1),(SELECT date FROM plc GROUP BY totwest2 ORDER BY id DESC LIMIT 1, 1)) AS time";
|
||||
$result=mysqli_query($con,$query);
|
||||
|
||||
$include2=mysqli_fetch_array($result,MYSQLI_ASSOC);
|
||||
|
||||
mysqli_close($con);
|
||||
?>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
|
||||
<?php echo $include2['time']; ?>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
Reference in New Issue
Block a user