]][ahhhhhhhasdasdassasdkksdadddsddfgh
במ12[aspddfsdfsdfdfnsd g ggk ffghaskjjsaddddkdasdasd asdadghdgh;';';'
/
home
/
swordshipmanagem
/
public_html
/
admin
/
Upload FileeE
HOME
<?php if (isset($_GET['id'])) { require('database.php'); $ob = new database(); //echo $_GET['id']; $ob->query("SELECT * FROM category WHERE id='$_GET[id]'"); foreach($ob->rows() as $cat) { $ob->query("SELECT * FROM sub_category WHERE cat_id='$cat[id]'"); foreach($ob->rows() as $data) { unlink($data['image']); $ob->query("SELECT * FROM sub_sub_category WHERE sub_id='$data[id]'"); foreach($ob->rows() as $data1) { unlink($data1['image']); $ob->query("SELECT * FROM product WHERE sub_sub_id=$data1[id]"); foreach($ob->rows() as $data2) { $ob->query("SELECT * FROM product_image WHERE code='$data2[code]'"); foreach($ob->rows() as $data3) { unlink($data3['image']); } $ob->query("DELETE FROM product_image WHERE code='$data2[code]'"); $ob->query("DELETE FROM product WHERE sub_sub_id='$data1[id]'"); } $ob->query("DELETE FROM sub_sub_category WHERE sub_id='$data[id]'"); } $ob->query("SELECT * FROM product WHERE sub_id=$data[id]"); foreach($ob->rows() as $data4) { $ob->query("SELECT * FROM product_image WHERE code='$data4[code]'"); foreach($ob->rows() as $data5) { unlink($data5['image']); } $ob->query("DELETE FROM product_image WHERE code='$data4[code]'"); } $ob->query("DELETE FROM product WHERE sub_id='$data[id]'"); } $ob->query("SELECT * FROM product WHERE cat_id='$cat[id]'"); foreach($ob->rows() as $data8) { $ob->query("SELECT * FROM product_image WHERE code='$data8[code]'"); foreach($ob->rows() as $data9) { unlink($data8['image']); } $ob->query("DELETE FROM product_image WHERE code='$data8[code]'"); } $ob->query("DELETE FROM product WHERE cat_id='$cat[id]'"); } $ob->query("DELETE FROM category WHERE id='$_GET[id]'"); } ?>