forked from Megha184/Central-Library
-
Notifications
You must be signed in to change notification settings - Fork 0
/
findstudent_name.php
49 lines (47 loc) · 1.4 KB
/
findstudent_name.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
<?php
$name=$_REQUEST['name'];
include('comman/connect.php');
?>
<table border="1">
<?php
$res=$con->query("select * from registration where name like '$name%'");
$res2=$con->query("select * from registration where name like '$name%'");
if(!$data2=mysqli_fetch_array($res2))
echo "<h1 class='found'>Oops No Found Data !</h1>";
else
{
$i=0; ?>
<tr class="tr">
<td width="50">Sl. No</td>
<td>Name</td>
<td>Gender</td>
<td>RegiNo</td>
<td>Email</td>
<td>Mobile</td>
<td>Branch</td>
<td>Year</td>
<td>Type</td>
<td width="70">Action</td>
</tr>
<?php
while($row=mysqli_fetch_array($res))
{ $id=$row['UserId'];
echo "<tr>";
echo "<td>".++$i."</td>";
echo "<td>".$row['Name']."</td>";
echo "<td>".$row['Gender']."</td>";
echo "<td>".$row['Regno']."</td>";
echo "<td>".$row['Email']."</td>";
echo "<td>".$row['MobileNo']."</td>";
echo "<td>".$row['Branch']."</td>";
echo "<td>".substr($row['Regno'],0,4)."</td>";
echo "<td align='center'>".$row['Type']."</td>";
echo "<td align='center'>
<a href='userview.php?id=".$id."'><i class='fa fa-eye'></i></a> | <a href='usersedit.php?id=".$id."'><i class='fa fa-pencil'></i></a> |
<a href='delete.php?id=".$id."&&tname=account1'><i class='fa fa-trash'></i></a>
</td>";
echo "</tr>";
}
}
?>
</table>