我使用SQL命令填充表中的值 - >>>>>
<?php
if (isset($_POST['AdminUpload']))
{
$name_detail = $_POST['username'];
$filename = basename($_FILES['img']['name']);
$temppath = $_FILES['img']['tmp_name'];
$destpath = "images/upload_stuff/" . $filename;
$filesize = $_FILES['img']['size'];
$ext = pathinfo($filename, PATHINFO_EXTENSION);
$query = $connection->query("INSERT INTO decibel_data(name,file_name,upload_date,file_size)
values('$name_detail','$filename',NOW(),'$filesize')") or die("image not inserted" . mysqli_error());
}
我可以在10天内将我的&#34; php自动删除&#34; script.All上面插入的记录必须在10天内删除...请帮助我。