-
Notifications
You must be signed in to change notification settings - Fork 2
/
confirm.php
132 lines (132 loc) · 3.3 KB
/
confirm.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<?php
// THIS PAGE exchanges information between users who have confirmed requests
include "connection.php";
if(empty($_SESSION))
{
session_start();
if(!isset($_SESSION['username']))
header("location:login.php");
}
else if(!isset($_SESSION['username']))
{
header("location:login.php");
exit;
}
$u=$_SESSION['userid'];
$slist=array();
$nlist=array();
$elist=array();
$tlist=array();
$moblist=array();
$genlist=array();
$semlist=array();
$cnf="SELECT SENDER,RECIEVER,TYPE FROM MESSAGES WHERE ( RECIEVER='$u' OR SENDER='$u') AND STATUS=1 AND TYPE='home'";
$cnf1=mysqli_query($con,$cnf);
if(mysqli_num_rows($cnf1)>0)
{
//echo "123";
while($cnf2=mysqli_fetch_assoc($cnf1))
{
if($cnf2['SENDER']==$u)
{
array_push($slist,$cnf2['RECIEVER']);
}
else
{
array_push($slist,$cnf2['SENDER']);
}
array_push($tlist,$cnf2['TYPE']);
}
$length=count($tlist);
// echo $length;
for($x=0;$x<$length;$x++)
{
$detail="SELECT EMAIL,NAME,MOBILE,GENDER,SEMESTER FROM INFO WHERE ENROLLMENT='$slist[$x]'";
$detail1=mysqli_query($con,$detail);
$detail2=mysqli_fetch_assoc($detail1);
array_push($nlist,$detail2['NAME']);
array_push($elist,$detail2['EMAIL']);
array_push($moblist,$detail2['MOBILE']);
array_push($genlist,$detail2['GENDER']);
array_push($semlist,$detail2['SEMESTER']);
}
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="">
</head>
<link rel="stylesheet" type="text/css" href="innerstyle.css">
<body>
<center> <img class="image" src="logo1.jpg" height=200 width=200 style="border-radius:100px; transform:scale(0.7);" > </center>
<h1>SHARECARE SOLUTIONS INDIA</h1>
<table cellpadding=20px border=20px align=center>
<center><b>YOUR CONFIRM TRIPS ARE AS FOLLOWS</b></center> <br>
<hr>
<tr id="head">
<td>NAME</td>
<td> EMAIL </td>
<td> PLACE </td>
<td> MOBILE </td>
<td> GENDER </td>
<td> SEMESTER </td>
</tr>
<tr>
<td> <?php
for($y=0;$y<$length;$y++)
{
echo $nlist[$y]."<br>";
}
?>
</td>
<td>
<?php
for($y=0;$y<$length;$y++)
{
echo $elist[$y]."<br>";
}
?>
</td>
<td>
<?php
for($y=0;$y<$length;$y++)
{
echo $tlist[$y]."<br>";
}
?>
</td>
<td>
<?php
for($y=0;$y<$length;$y++)
{
echo $moblist[$y]."<br>";
}
?>
</td>
<td>
<?php
for($y=0;$y<$length;$y++)
{
echo $genlist[$y]."<br>";
}
?>
</td>
<td>
<?php
for($y=0;$y<$length;$y++)
{
echo $semlist[$y]."<br>";
}
?>
</td>
</tr>
</table>
<center> <a href="login_home.php"><input type='button' class='but' value='back'></a></center>
</body>
</html>