diff --git a/.idea/ecommerce.iml b/.idea/ecommerce.iml
new file mode 100644
index 0000000..c956989
--- /dev/null
+++ b/.idea/ecommerce.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..3117c65
--- /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/.idea/workspace.xml b/.idea/workspace.xml
new file mode 100644
index 0000000..855250c
--- /dev/null
+++ b/.idea/workspace.xml
@@ -0,0 +1,404 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ true
+ DEFINITION_ORDER
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1536045042639
+
+
+ 1536045042639
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 1536046494566
+
+
+
+ 1536046494566
+
+
+ 1538043161582
+
+
+
+ 1538043161582
+
+
+ 1538043606261
+
+
+
+ 1538043606261
+
+
+ 1538044352317
+
+
+
+ 1538044352317
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/admin/add_admin.php b/admin/add_admin.php
new file mode 100644
index 0000000..e5ebde1
--- /dev/null
+++ b/admin/add_admin.php
@@ -0,0 +1,42 @@
+
+
\ No newline at end of file
diff --git a/admin/index.php b/admin/index.php
index b8ffd2e..dfff17d 100644
--- a/admin/index.php
+++ b/admin/index.php
@@ -71,6 +71,11 @@
Admin logout
+
+
+ Add Admin
+
+
@@ -126,6 +131,9 @@
else if(isset($_GET['del_customer'])){
include ('del_customer.php');
}
+ else if(isset($_GET['add_admin'])){
+ include ('add_admin.php');
+ }
?>
diff --git a/admin/login.php b/admin/login.php
index 9b7058f..b4d6a7a 100644
--- a/admin/login.php
+++ b/admin/login.php
@@ -7,8 +7,7 @@
$pass = $_POST['user_pass'];
$sel_user = "select * from admins where user_email='$email' AND user_pass='$pass'";
$run_user = mysqli_query($con, $sel_user);
- $check_user = mysqli_num_rows($run_user);
- if($check_user==0){
+ if(mysqli_num_rows($run_user)==0){
$error_msg = 'Password or Email is wrong, try again';
}
else{
@@ -55,7 +54,12 @@