-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathshowinfo.php
51 lines (42 loc) · 1.07 KB
/
showinfo.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
<?php
function showdetail($standard,$rolno)
{
include('dbcon.php');
$sql = "SELECT * FROM `student` WHERE `rollno`='$rolno' AND `standard`='$standard'";
$run = mysqli_query($con,$sql);
if(mysqli_num_rows($run)>0)
{
$data = mysqli_fetch_assoc($run);
?>
<table border="1" style="width: 50%; margin-top: 30px; background-color: #e3e3e3; " align="center">
<tr>
<th colspan="3"> Student Details </th>
</tr>
<tr>
<td rowspan="5"> <img src="dataimg/<?php echo $data['image']; ?>" style="max-width: 150px; max-height: 120px" > </td>
</tr>
<tr>
<th>Roll No</th>
<td><?php echo $data['rollno']; ?></td>
</tr>
<tr>
<th> Name </th>
<td><?php echo $data['name']; ?></td>
</tr>
<tr>
<th> Parents Contact No </th>
<td><?php echo $data['pcont']; ?></td>
</tr>
<tr>
<th> City </th>
<td><?php echo $data['city']; ?></td>
</tr>
</table>
<?php
}
else
{
echo "<script> alert('No Student Found'); </script>";
}
}
?>