* Sunda Cyber Army 2k17 *
Indonesia Defacer ~
<?php
$host = "webdev.iyaserver.com";
$userid = "emiliedu";
$password = "AcadDev_Duran_3980098433";
$db = "emiliedu_schedule";
$mysqli = new mysqli($host, $userid, $password, $db);
if ($mysqli->connect_errno) {
echo "Failed to connect to MySQL: " . $mysqli->connect_error;
exit();
}
$sql = "SELECT * FROM device WHERE ID=" . $_REQUEST["id"];
$result = $mysqli->query($sql);
while($currentrow = $result->fetch_assoc()) {
echo "<strong> Make: </strong>" . $currentrow["device_name"] . "<br>";
echo "<strong> Price: </strong>" . $currentrow["device_price"] . "<br>";
echo "<strong> Manufacturer: </strong>" . $currentrow["manufacturer_name"] . "<br>";
echo "<strong> System: </strong>" . $currentrow["operating_system"] . "<br>";
echo "<strong> Type: </strong>" . $currentrow["device_type"] . "<br>";
} // end loop
?>
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>Acad276 Practical Exam: Details</title>
<style>
.container {
width: 800px;
margin: auto;
}
h1 {
margin: auto;
text-align: center;
background-color: #900;
color: #FC0;
height: 60px;
line-height: 60px;
}
.details {
border: 1px solid #990000;
width: 600px;
margin: auto;
margin-top: 20px;
padding: 20px;
}
table {
height: 300px;
width: 100%;
}
table img {
height: 300px;
}
img {
width: 300px;
}
.label {
text-align: right;
width: 20%;
padding: 3px 10px 3px;
}
.data {
width: 40%;
}
.input>input, .input>select {
width: 100%;
}
.nav-link{
margin: 10px 0px;
font-size: 14px;
}
</style>
</head>
<body>
<div class="container">
<h1>Mobile Device Database: Details Page</h1>
<div class="nav-link">
<a href="search.php"><< Back to Search Page</a>
</div>
<div class="details">
<table>
<tr>
<td rowspan="5" class="img">
<img src="https://image.shutterstock.com/image-vector/vector-sketch-illustration-human-hand-260nw-605728496.jpg" class="img">
</td>
<td class="label">Name:</td>
<td class="data"><strong><em>Pixel</em></strong></td>
</tr>
<tr>
<td class="label">Price:</td>
<td><strong>549.00</strong></td>
</tr>
<tr>
<td class="label">Manufacturer:</td>
<td>Apple</td>
</tr>
<tr>
<td class="label">System:</td>
<td>iOS</td>
</tr>
<tr>
<td class="label">Type:</td>
<td>Smartphone</td>
</tr>
</table>
</div>
</div>
</body>
</html>