Sunda Cyber Army


* Sunda Cyber Army 2k17 *
Indonesia Defacer ~


Path : /home/dent/public_html/demos2023/
File Upload :
Current File : /home/dent/public_html/demos2023/drilldown_edit.php

<?php
echo $_REQUEST["id"];

if(empty($_REQUEST['id'])) {
    echo "Please go through search page. (or redirect)";
//    header('Location: search_drilldown.php');
    exit();
}

$host = "webdev.iyaserver.com";
$userid = "[youruserid]";
$userpw = "[yourpw]";
$db = "[database name]";

include '../pdloginvariables.php';

$mysql = new mysqli(
    $host,
    $userid,
    $userpw,
    $db
);

$sql = "SELECT * FROM movieView2 WHERE dvd_title_id = " . $_REQUEST["id"];
//echo $sql ;

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

$sqlrating = "SELECT * from ratings";
$resultsratings = $mysql->query($sqlrating);


echo "<hr>";
?>

<form action="update.php">
    <input type="hidden" name="id" value="<?php echo $_REQUEST["id"]; ?>">
<?php

$currentrow = $results->fetch_assoc();

    ?>

    <input type="text" name="title" value="<?php echo $currentrow["title"]; ?>">
<?php
    echo  $currentrow["title"] . "<br>"
?>
    <select name="rating">

<?php
    echo "<option value='" . $currentrow["rating_id"] . "'>" . $currentrow["rating"] . "</option>";

    while($ratings = $resultsratings->fetch_assoc()){
        echo "<option value='" . $ratings["rating_id"] . "'>" . $ratings["rating"] .
            "</option>";
    }

    echo "</select>";
    echo "Rated " . $currentrow["rating"] . "<br>";
    echo "Studio: " . $currentrow["label"] . "<br>";
    echo "<br>";

?>
    <input type="submit">
</form>