diff --git a/.idea/ecommerce1.iml b/.idea/ecommerce1.iml
new file mode 100644
index 0000000..c956989
--- /dev/null
+++ b/.idea/ecommerce1.iml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
new file mode 100644
index 0000000..28a804d
--- /dev/null
+++ b/.idea/misc.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
new file mode 100644
index 0000000..0f60086
--- /dev/null
+++ b/.idea/modules.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
new file mode 100644
index 0000000..94a25f7
--- /dev/null
+++ b/.idea/vcs.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/admin/del_order.php b/admin/del_order.php
new file mode 100644
index 0000000..c74bbf5
--- /dev/null
+++ b/admin/del_order.php
@@ -0,0 +1,20 @@
+alert("Deleted Successfully");';
+ header("refresh:2;URL=index.php?view_orders");
+ }
+ else
+ {
+ echo '';
+ }
+}
+
+
+?>
\ No newline at end of file
diff --git a/admin/functions/functions.php b/admin/functions/functions.php
new file mode 100644
index 0000000..c0e15ea
--- /dev/null
+++ b/admin/functions/functions.php
@@ -0,0 +1,128 @@
+ $cat_title ";
+ }
+}
+
+//getting Brands
+function getBrands(){
+ global $con;
+ $get_brands = "select * from brands";
+ $run_brands = mysqli_query($con, $get_brands);
+ while ($row_brands= mysqli_fetch_array($run_brands)){
+ $brand_id = $row_brands['brand_id'];
+ $brand_title = $row_brands['brand_title'];
+ echo "
+ $qty) {
+ /*Way 2 to do */
+ for($i =0; $i< sizeof($_POST['product_id']); $i++){
+ $pro_id = $_POST['product_id'][$i];
+ $qty = $_POST['qty'][$i];
+ if($qty > 0) {
+ $update_qty = "update cart set qty='$qty' where p_id='$pro_id' AND ip_add='$ip'";
+ $run_qty = mysqli_query($con, $update_qty);
+ }
+ }
+ if(isset($_POST['remove'])) {
+ foreach ($_POST['remove'] as $remove_id) {
+ $del_pro = "delete from cart where p_id='$remove_id' AND ip_add='$ip'";
+ $run_del = mysqli_query($con, $del_pro);
+ }
+ }
+ header('location: '.$_SERVER['PHP_SELF']);
+ }
+ if(isset($_POST['continue'])){
+ header('location: index.php');
+ }
+ ?>
+
+
+
+
+
\ No newline at end of file