]][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 sub_sub_category WHERE id='$_GET[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 id='$_GET[id]'"); } ?>