| 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/vtg_bak/ |
Upload File : |
<!DOCTYPE html>
<!--
******************************
Project: VetroIng, 2023.
Version: PHP 5-7
Author : M. Kukic
Note :
******************************
-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel='shortcut icon' type='image/png' href='favicon.png'/>
<title>VetroIng</title>
</head>
<body>
<?php
//
include "config.php";
//
include "hed.php";
//
//
$ok = $_GET["ok"];
//
// Meteo 96 - 24h
$dbn=1024;
echo "<h3>DataBase DEL - ".$dbn." (24h)</h3>";
//
$sql = "SELECT * FROM datalog where vtgid='CA0' ORDER BY dattim ASC";
if ($vap=5) {
$result = mysql_query($sql, $dbh) or die(mysql_error($dbh));
$numofrows = mysql_num_rows($result);
}else{
$result = mysqli_query($dbh, $sql) or die(mysqli_error($dbh));
$numofrows = mysqli_num_rows($result);
}
echo "<b>NumOfRows: ".$numofrows."</b>";
echo "<br><br><b>Za brisanje DB-ID: </b>";
if ($numofrows>($dbn)){
for ($i = 1; $i<($numofrows-$dbn+1); $i++)
{
if ($vap=5) {
$row = mysql_fetch_array($result);
}else{
$row = mysqli_fetch_array($result);
}
$did=$row['id'];
echo "<br>".$i.". - ".$did;
//
if ($ok=="1")
{
$sql_d = "DELETE FROM datalog WHERE id=".$did;
if ($vap=5) {
$result_d = mysql_query($sql_d, $dbh) or die(mysql_error($dbh));
}else{
$result_d = mysqli_query($dbh,$sql_d) or die(mysqli_error($dbh));
}
}
}
}
echo "<br>";
echo "<form action='dbdel.php?ok=1'>";
echo "Status: <input type='text' name='ok' id='ok' value='$ok' size='2'>";
echo str_repeat(' ',32)."<input type='submit' value='Enter'>";
echo "</form>";
echo "</table>";
mysql_close($dbh);
?>
<hr>
<img src="img/b_white-2.png">
<a href="javascript:history.go(-1)"><img src="img/r_ret.png" width="" height="48"></a><img src="img/b_white-3.png">
<a href="infoca.php"><img src="img/r_up.png" width="" height="48"></a><img src="img/b_white-2.png">
</div>
<?php include "fut.php";?>
</body>
</html>