Sunda Cyber Army


* Sunda Cyber Army 2k17 *
Indonesia Defacer ~


Path : /home/dent/studentexams/creich/
File Upload :
Current File : /home/dent/studentexams/creich/details.php

<!DOCTYPE html>
<html>
<head>
    <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>
<?php
$mysql = new mysqli(
    "webdev.iyaclasses.com",
    "dent_guest",
    "Acad276_Ttrojan_Dev2Ex@m",
    "dent_exam"
);

if (! $_REQUEST['id']) {
    echo "please use the " . '<a href="search.php">Search Page</a>' . $mysql->connect_error;
    exit();
}


if($mysql->connect_errno){
    echo "DATABASE Connection Error: ";
    echo $mysql->connect_error;
    exit();
}else {
    echo "DB Connection Successful. <br><br>";
}

$sql = "SELECT devices.device_id,devices.name,price,manufacturer,systems.system_id,types.type_id,img_url,manufacturer,systems.system,types.type 
FROM devices,manufacturers,systems,types
WHERE devices.manufacturer_id=manufacturers.manufacturer_id
AND devices.system_id=systems.system_id
AND devices.type_id=types.type_id
AND devices.device_id =" . $_REQUEST['id'];

$results = $mysql->query($sql);

?>
<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://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQLSc5M0hh5A5s91IIVx16V05mno_XhawYhSZB1_wmlSpZHfbw2" class="img">
                </td>
            </tr>
            <?php
            echo "<tr>";
                echo "<td class='label'>Name:</td>";
                echo "<td class='data'><strong>" . $currentrow["name"] ."</div>";
                echo "</tr><tr>";
                echo "<td class='label'>Price:</td>";
                echo "<td><strong>" . $currentrow["price"] ."</div>";
                echo "</tr><tr>";
                echo "<td class=label'>Manufacturer:</td>";
                echo "<td>" . $currentrow["manufacturer"] ."</td>";
                echo "</tr><tr>";
                echo "<td class='label'>System:</td>";
                echo "<td>" . $currentrow["system"] ."</td>";
                echo "</tr><tr>";
                 echo "<td class='label'>Type:</td>";
                echo "<td>" . $currentrow["type"] ."</td>";
                echo "</tr>";
                ?>
        </table>
    </div>

</div>
</body>
</html>