-
Notifications
You must be signed in to change notification settings - Fork 0
/
11.php
124 lines (103 loc) · 3.39 KB
/
11.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE html>
<html>
<head>
<style>
th {text-align: right;
font-size:15px;}
th, td {padding: 8px;}
th.one{font-size:16px;}
th.two{
font-family: "Segoe UI Light","Segoe UI",Arial,sans-serif;
font-size:80px;
}
th.three{text-align:top;
padding-top: 0px;}
th.four{text-align:center;}
th.one{background-color: #E8E8E8 ;
padding: 5px;}
table.two{border: 1px solid black;
border-collapse: collapse;}
a {
color: black;
}
img{padding-left:2px;}
</style>
<meta charset="utf-8" />
<title>Mission Details</title>
<!-- Our CSS stylesheet file -->
<link rel="stylesheet" href="assets/css/styles.css" />
<!-- Including the Lobster font from Google's Font Directory -->
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Lobster" />
<!-- Enabling HTML5 support for Internet Explorer -->
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<font face="Bookman Old Style">
<header>
<h1>CSS3 Animated Navigation Menu</h1>
<h2><a href="http://tutorialzine.com/2011/05/css3-animated-navigation-menu/">« Read and download on Tutorialzine</a></h2>
</header>
<br/><br/><br/><br/><br/><br/>
<center>MISSION DETAILS
</br>
<?php
$mysqli =mysqli_connect("localhost","root","","nasa");
if (mysqli_connect_errno())
{
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
$one = implode(mysqli_fetch_assoc(mysqli_query($mysqli,"select count(*) from mission")));
if($one>'0')
{
$query = "SELECT * from mission ORDER BY mname DESC";
$result = mysqli_query($mysqli, $query);
echo "<table border='1'>";
$i=1;
echo "<tr><td><b>Sl.No.</b></td><td><b>Mission Name</b></td><td><b>Launch Date</b></td><td><b>Inchrage ID</b></td><td><b>Amount</b></td><td><b>Photo</b></td><td><b>Description</b></td><td><b>Status</b></td><td><b>Delete</b></td></tr>";
while($row = $result->fetch_array(MYSQLI_ASSOC))
{
echo "<tr><td>";
echo "$i";
echo "</td><td>";
echo $row['mname'];
echo "</td><td>";
echo $row['Launchdate'];
echo "</td><td>";
echo $row['Admin_ID'];
echo "</td><td>";
echo $row['Amount'];
echo "</td><td>";
echo $row['Photo'];
echo "</td><td>";
echo $row['Description'];
echo "</td><td>";
echo $row['Status'];
echo "</td><td>";
echo "<a href=\"Update Mission.php?mname=".$row['mname']."\">Update</a>";
echo "</td><td>";
echo "<a href=\"Delete Mission.php?mname=".$row['mname']."\">Delete</a>";
echo "</td></tr>";
$i++;
}
echo "</table>";
}
else
echo "<b>No Details to Display</b>";
?>
</center>
<nav>
<ul class="fancyNav">
<li id="home"><a href="#home" class="homeIcon">Home</a></li>
<li id="news"><a href="#news">News</a></li>
<li id="about"><a href="#about">About us</a></li>
<li id="services"><a href="#services">Services</a></li>
<li id="contact"><a href="#contact">Contact us</a></li>
</ul>
</nav>
<footer>Looks best in Firefox 4, usable everywhere. <b>To download the source code, visit <a
href="http://tutorialzine.com/2011/05/css3-animated-navigation-menu/">Tutorialzine.com</a></b></footer>
</body>
</html>