forked from aniliam/PenPalforLife
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathajaxgetdata.php
More file actions
47 lines (34 loc) · 1.26 KB
/
ajaxgetdata.php
File metadata and controls
47 lines (34 loc) · 1.26 KB
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
<?php
require('connection.php');
if(isset($_REQUEST['id']))
{
$array = $_REQUEST['id'];
$result=selectUsers();
$row = $result->fetch_all();
if($array<count($row))
{
$mydata=$row[$array];
echo '
<div class="col-md-5">
<div class="card">
<div class="card-block">
<h4 class="card-title">Matched With</h4>
<h6 class="card-subtitle text-muted">Name:'.$mydata[2].'</h6>
</div>
<div class="col-centered">
<img src="https://cdn3.iconfinder.com/data/icons/avatar-set/512/Avatar02-512.png" alt="Card image"
height="200" width="250">
</div>
<div class="card-block">
<p class="card-text">School:'.$mydata[5].'
<br>
Location:'.$mydata[8].",".$mydata[7].",".$mydata[6].'
<br>Email:'.$mydata[4].'<br>Bio:'.$mydata[15]; '</p>
</div>
</div>
</div>';
}
else
echo '';
}
?>