Server IP : 111.118.215.189 / Your IP : 3.15.158.134 Web Server : Apache System : Linux md-in-83.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : a1673wkz ( 2475) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home1/a1673wkz/propstonerealty.com/Admin/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include("config.php"); //print_r($_POST); if(!empty($_POST['image']) && !empty($_POST['product_id'])) { $image=$_POST['image']; $id=$_POST['product_id']; $fet=$obj->arr("SELECT * FROM property WHERE id='$id'"); $un=unserialize($fet['floor_plan']); $t_item=count((array) $un); //echo $t_item; $item=array(); for($cnt=0;$cnt<$t_item;$cnt++) { if($image!=$un[$cnt]) { $item[]=$un[$cnt]; } } $new=serialize($item); //print_r($new); $update=$obj->query("UPDATE property SET floor_plan='$new' WHERE id='$id'"); if($update) { echo '<p class="alert alert-success mt-3">Succfully Deleted</p>'; } else { echo '<p class="alert alert-danger mt-3">Error Something Wrong</p>'; } } else{ echo '<p class="alert alert-danger mt-3">Error Something Wrong</p>'; } ?>