Skip to content
Snippets Groups Projects
Commit 647e7837 authored by Husnulzaki Wibisono Haryadi's avatar Husnulzaki Wibisono Haryadi
Browse files

Fix bug on profile links

parent f1d9894f
1 merge request!45OneHundred - 13515005 - Husnulzaki Wibisono Haryadi
......@@ -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");
......
......@@ -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 {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment