Skip to content

Commit

Permalink
Last Release 12/17/2020
Browse files Browse the repository at this point in the history
  • Loading branch information
Jave Lupango committed Dec 17, 2020
1 parent bb9612e commit e5f5cda
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions view/body/viewuser.body.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@
}
else if (strtoupper($data) == "HISTORY")
{
if ($aside_access == "admin")
{
$SelectQuery = "SELECT * FROM users WHERE status = 'active' ORDER BY dtjoin DESC";
}
else
{
//if ($aside_access == "admin")
// {
// $SelectQuery = "SELECT * FROM users WHERE status = 'active' ORDER BY dtjoin DESC";
// }
// else
// {
// $upline_res = $c_Select->fn_SingleResponse($conn, "SELECT * FROM users WHERE username=?", "userid", $_SESSION['username']);
$SelectQuery = "SELECT * FROM users WHERE status = 'active' AND upline ='$upline_res' ORDER BY dtjoin DESC";
}
// $SelectQuery = "SELECT * FROM users WHERE status = 'active' AND upline ='$upline_res' ORDER BY dtjoin DESC";
// }

//$upline_res = $c_Select->fn_SingleResponse($conn, "SELECT * FROM users WHERE username=?", "id", $_SESSION['username']);
$upline_res = $c_Select->fn_SingleResponse($conn, "SELECT * FROM users WHERE username=?", "id", $_SESSION['username']);
$SelectQuery = "SELECT (SELECT username From users WHERE users.id = creditlogs.userid) as userid,
(SELECT username From users WHERE users.id = creditlogs.ap_id) as ap_id,
credit ,type, duration, dt FROM creditlogs WHERE userid = '$upline_res' ORDER BY dt DESC";
Expand Down

0 comments on commit e5f5cda

Please sign in to comment.