-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathact_elec.php
42 lines (37 loc) · 1.57 KB
/
act_elec.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
<?php
$act=$_GET['act'];
include_once 'dbconnect.php';
include 'header.php';
include 'validation.php';
include 'act_navbar.php'; ?>
<link href="Photo Gallery/css/style.css" rel="stylesheet" type="text/css">
<div class="col-sm-9">
<div class="main" id="myprofile">
<h1>Electronic <?php echo $act."s";?></h1>
<br />
<?php
$sql_query=mysqli_query($bd,"SELECT * FROM $act WHERE branch='electronic' OR branch='ej' OR branch='et' ORDER BY id DESC");
if(mysqli_num_rows($sql_query)>0)
{
while($row=mysqli_fetch_row($sql_query))
{?>
<h2><?php echo $row[1]; ?></h2>
<div id="<?php echo $row[0]; ?>" class="comments" width="70%">
<div class="titles">
<span class="title">Name:</span>   <?php echo $row[1]; ?><br />
<span class="title">Contucted By:</span>   <?php echo $row[2]; ?><br />
<span class="title">Branch:</span>   <?php echo $row[3]; ?><br />
<span class="title">Year:</span>   <?php echo $row[4]; ?><br />
<span class="title">Date & Time:</span>   <?php echo $row[5]; ?><br />
<span class="title">Fees:</span>   <?php echo $row[6]; ?><br />
<span class="title">Details:</span>   <?php echo $row[7]; ?><br />
</div>
</div>
<br /><br />
<?php
}
}?>
</div>
</div>
</div>
<?php include("footer.php"); ?>