-
Notifications
You must be signed in to change notification settings - Fork 30
/
success1.php
145 lines (96 loc) · 3.08 KB
/
success1.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
133
134
135
136
137
138
139
140
141
142
143
144
145
<?php
session_start();
include('dbconnect.php');
$mobileno = $_GET['mobileno'];
$rollno = $_GET['rollno'];
$eventid = $_GET['eventid'];
$sql = "select event_title, event_id ,min_team from create_event where event_id='$eventid'";
$result = mysqli_query($conn,$sql);
while($row = mysqli_fetch_array($result)) {
if($row['min_team'] == 0){
$table = '<table border = "1">
<tr>
<th>EVENT ID</th>
<td>'.$row['event_id'].'</td>
</tr>
<tr>
<th>EVENT Name</th>
<td>'.$row['event_title'].'</td>
</tr>';
$sql1 = "select name,roll_no,mobile_no, email,college_name,dept_name,payment_status from singleevent_registration where roll_no='$rollno' and event_id='$eventid'";
$result1 = mysqli_query($conn,$sql1);
while($row1 = mysqli_fetch_array($result1)) {
$table .= '<tr>
<th>Student Name</th>
<td>'.$row1['name'].'</td>
</tr>
<tr>
<th>Roll No</th>
<td>'.$row1['roll_no'].'</td>
</tr>
<tr>
<th>College Name</th>
<td>'.$row1['college_name'].'</td>
</tr>
<tr>
<th>Department Name</th>
<td>'.$row1['dept_name'].'</td>
</tr>
<tr>
<th>Email</th>
<td>'.$row1['email'].'</td>
</tr>
<tr>
<th>Mobile No</th>
<td>'.$row1['mobile_no'].'</td>
</tr>
<tr>
<th>payment Status</th>
<td>'.$row1['payment_status'].'</td>
</tr>
</table>';
}
}
else{
$table = '<table border = "1">
<tr>
<th>EVENT ID</th>
<td>'.$row['event_id'].'</td>
</tr>
<tr>
<th>EVENT Name</th>
<td>'.$row['event_title'].'</td>
</tr>';
$sql1 = "select team_name,student_name,mobile_no, emails,college_name,payment_status from teamevent_registration where mobile_no='$mobileno' and event_id='$eventid'";
$result1 = mysqli_query($conn,$sql1);
while($row1 = mysqli_fetch_array($result1)) {
$table .= '<tr>
<th>Team Name</th>
<td>'.$row1['team_name'].'</td>
</tr>
<tr>
<th>College Name</th>
<td>'.$row1['college_name'].'</td>
</tr>
<tr>
<th>Team Members</th>
<td>'.$row1['student_name'].'</td>
</tr>
<tr>
<th>Emails of Team Members </th>
<td>'.$row1['emails'].'</td>
</tr>
<tr>
<th>Mobile No of Team Members</th>
<td>'.$row1['mobile_no'].'</td>
</tr>
<tr>
<th>payment Status</th>
<td>'.$row1['payment_status'].'</td>
</tr>
</table>';
}
}
}
echo $table;
?>