From 122d4ee46c7e00754e29d9691de8beb11642167b Mon Sep 17 00:00:00 2001 From: Taliha Date: Sun, 16 Sep 2018 20:40:49 +0500 Subject: [PATCH 1/2] product price regex validation+pro image ajax. --- admin/chktitle.php | 10 ++++++++++ admin/index.php | 5 +++++ admin/insert_product.php | 32 +++++++++++++++++++++++++++----- 3 files changed, 42 insertions(+), 5 deletions(-) create mode 100644 admin/chktitle.php diff --git a/admin/chktitle.php b/admin/chktitle.php new file mode 100644 index 0000000..0411565 --- /dev/null +++ b/admin/chktitle.php @@ -0,0 +1,10 @@ +0){ + echo"Image already exist"; +} \ No newline at end of file diff --git a/admin/index.php b/admin/index.php index b8ffd2e..f5cdba6 100644 --- a/admin/index.php +++ b/admin/index.php @@ -18,6 +18,11 @@ E-commerce Admin Panel Admin Panel +
diff --git a/admin/insert_product.php b/admin/insert_product.php index 5dce0d5..1ded2fc 100644 --- a/admin/insert_product.php +++ b/admin/insert_product.php @@ -1,3 +1,4 @@ +
- + +
@@ -53,13 +55,16 @@
- + +
- +
@@ -83,6 +88,22 @@
+ \ No newline at end of file +?> + From c3e86dde1897a60b7f93321d1c38acb3d27c6b12 Mon Sep 17 00:00:00 2001 From: Abdulrafy678 Date: Thu, 27 Sep 2018 00:53:10 -0700 Subject: [PATCH 2/2] Price Validation ajex --- admin/insert_product.php | 2 ++ admin/login.php | 2 ++ admin/view_products.php | 3 +++ 3 files changed, 7 insertions(+) diff --git a/admin/insert_product.php b/admin/insert_product.php index 1ded2fc..d10550a 100644 --- a/admin/insert_product.php +++ b/admin/insert_product.php @@ -16,6 +16,8 @@ + +
diff --git a/admin/login.php b/admin/login.php index 9b7058f..c574bea 100644 --- a/admin/login.php +++ b/admin/login.php @@ -22,6 +22,8 @@ } header('location:index.php?logged_in=You have successfully logged in!'); } + + } ?> diff --git a/admin/view_products.php b/admin/view_products.php index 2e57b8c..d382bfd 100644 --- a/admin/view_products.php +++ b/admin/view_products.php @@ -23,6 +23,9 @@ $count_pro = mysqli_num_rows($run_pro); if($count_pro==0){ echo "

No Product found in selected criteria

"; + + + } else { $i = 0;