From 7cb8f0660ed81aab5b42504ea15eabc63c9afa63 Mon Sep 17 00:00:00 2001
From: bawantha
Date: Wed, 28 Nov 2018 09:52:45 +0530
Subject: [PATCH] cart is added
---
cart.php | 230 +++++++++++++++++++++++++++++++
controllers/login.controller.php | 2 +-
products.php | 2 +-
styles/style.css | 58 ++++++++
view.php | 2 +-
5 files changed, 291 insertions(+), 3 deletions(-)
diff --git a/cart.php b/cart.php
index e69de29..fe1ff40 100644
--- a/cart.php
+++ b/cart.php
@@ -0,0 +1,230 @@
+
+
+
+
+
+ C Online
+
+
+
+
+
+
+
+ <
+
+
+
+
+
+
+
+
+
+
+
+ window.open('cart.php','_self')";
+ }
+
+
+
+ }
+
+
+
+
+ }
+
+
+
+ }
+
+ echo @$up_cart = update_cart();
+
+
+
+ ?>
+
+
+
+
+
+
\ No newline at end of file
diff --git a/controllers/login.controller.php b/controllers/login.controller.php
index 71fc781..b195a72 100644
--- a/controllers/login.controller.php
+++ b/controllers/login.controller.php
@@ -10,7 +10,7 @@
// email and password sent from form
$email = mysqli_real_escape_string($db,$_POST['email']);
- $password = md5(mysqli_real_escape_string($db,$_POST['password']));
+ $password = mysqli_real_escape_string($db,$_POST['password']);
$sql = "SELECT customer_id FROM customer_registered WHERE email = '$email' AND password = '$password' ";
$result = mysqli_query($db,$sql);
diff --git a/products.php b/products.php
index 5cec569..f2a093b 100644
--- a/products.php
+++ b/products.php
@@ -27,7 +27,7 @@
-
+f