From 647e7837fdc71ec5fd68e698e90aba5dae5666e4 Mon Sep 17 00:00:00 2001
From: ayamberkakienam <zackhardyz@gmail.com>
Date: Thu, 5 Oct 2017 16:16:45 +0700
Subject: [PATCH] Fix bug on profile links

---
 login/login.php   | 2 +-
 login/sign_up.php | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/login/login.php b/login/login.php
index 14b3e282..9ed9a68e 100755
--- a/login/login.php
+++ b/login/login.php
@@ -17,7 +17,7 @@
                 }
                 if($username == $dbusername && $password == $dbpassword)
                 {
-                    header("Location: ../profile_page/profile.php?id=$user_id");
+                    header("Location: ../profile/profile.php?id=$user_id");
                 }
             } else {
                 include("login.html");
diff --git a/login/sign_up.php b/login/sign_up.php
index 001d9baf..0d451c27 100644
--- a/login/sign_up.php
+++ b/login/sign_up.php
@@ -29,7 +29,7 @@
                 $getUserID = mysqli_query($con,"SELECT user_id FROM user WHERE username='".$username."'") or die(mysql_error());
                 $row=mysqli_fetch_assoc($getUserID);
                 $user_id=$row['user_id'];
-                header("Location: ../profile_page/profile.php?id=?$user_id");
+                header("Location: ../profile/profile.php?id=?$user_id");
                 if ($status == "customer") {
                     header("Location: ../order/order.php?id=?$user_id");
                 } else {
-- 
GitLab