-
Notifications
You must be signed in to change notification settings - Fork 0
/
cview.php
61 lines (53 loc) · 1.04 KB
/
cview.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
<?php include'header.php';?>
<html>
<head>
<center>
<style>
body {
background-image: url('b.jpg');
background-size: cover;
}
table{
width: 800px;
margin:auto;
text-align:center;
margin-top:30px;
color: #ffff; }
table,th,td{
border:3px solid gray;
border-collapse:collapse;
padding:15px;
font-size:15px;
}
</style>
</head>
<body>
<table border= 1 cellpadding =1 cellspacing =1>
<h7 style="color:White;">ALL course Informetion.</h7>
<tr>
<th>Id</th>
<th>Name</th>
<th>Cradit hour</th>
</tr>
<?php
//connection
$con = mysqli_connect('127.0.0.1','root','');
//databas
mysqli_select_db($con,'std');
//select
$sql = " select * from course";
//execute
$records=mysqli_query($con,$sql);
while($row=mysqli_fetch_array($records))
{
echo"<tr>";
echo"<td>".$row['c_id']."</td>";
echo"<td>".$row['c_name']."</td>";
echo"<td>".$row['cradit']."</td>";
}
?>
</table>
</center>
</body>
</html>
<?php include'footer.php';?>