View difference between Paste ID: MZG9pM5J and 1dNdi0xM
SHOW: | | - or go back to the newest paste.
1
<?php
2
session_start();
3
if(!isset($_SESSION['userId'])){ header('location:http://shonit.ml/oranim/login.php');}
4
?>
5
6
<?php
7
    include "asc/header.php";
8
9
    include "asc/customer_sidebar.php";
10
11
   $id = $_GET['userId'];
12
13
  			$user = $_GET['email'];
14
		    $pass = $_GET['password'];
15
		   
16
$result = $conn->mysqli_query("select * from useraccounts where email='$user'");
17
 if($result->num_rows>0)
18
		    { 
19
		      session_start();
20
		      $data = $result->fetch_assoc();
21
		      $_SESSION['userId']=$data['id'];
22
		      $_SESSION['user'] = $data;
23
		      header('location:dashboard/user_panel.php?userid='.$data['id']);
24
		      //?userid='.$data['id'].'&email='.$user
25
		     
26
$displayIntro = mysqli_query($conn,'SELECT * FROM useraccounts WHERE userid='.$data['id']);
27
28
$displayTitle = mysqli_fetch_assoc($displayIntro);
29
}
30
		
31
		
32
   $conn = new mysqli("","","","");
33
34
35
		    
36
?>
37
38
39
40
41
<html>
42
<head>
43
  <title> נקודות </title>
44
  <link rel="stylesheet" type="text/css" href="css/user_panel_nav.css" />
45
  </head>
46
  <body>
47
     <ul>
48
  <li class="active"><a href="user_panel.php">Home</a></li>
49
  <li><a href="logout.php">להתנתק</a></li>
50
51
</ul>
52
<br>
53
54
    <div class="flex-container">
55
        <div class="flex-item">
56
<p>
57
                              
58
59
60
            </p>
61
            <p id='score'>
62
                מספר הנקודות שלך הם:<?php echo $displayTitle['balance'];?>
63
            </p>
64
65
    </div>
66
     </div>
67
68
     
69
  </body>
70
</html>