Sunda Cyber Army


* Sunda Cyber Army 2k17 *
Indonesia Defacer ~


Path : /home/dent/public_html/demo4b/
File Upload :
Current File : /home/dent/public_html/demo4b/insertmovie.php

<?php
if(empty($_REQUEST["genre"])) {
    echo "STOP! Go through the form!";
    exit();
}
if(empty(trim($_REQUEST["title"]))) {
    echo "Please fill out the title.";
    exit();
}
print_r($_REQUEST);

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

include '../pdloginvariables.php';

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

if($mysql->connect_errno) {
    echo "DB Connection problem: " .
        $mysql->connect_error;
    exit();
}

$sql = "
      INSERT INTO dvd_titles 
      (title, release_date, award, label_id, 
      sound_id, genre_id, rating_id, format_id)
      VALUES
      ("  .
    "'" . $_REQUEST["title"] . "'," .
    "'" . $_REQUEST["release_date"] . "'," .
    "'AWARD'          ," .
    "2                " .
    "2,              " .
    $_REQUEST["genre"] . "," .
    "2,              " .
    "2              " .
    ")";

echo "<hr>SQL:<br>" . $sql . "<hr>";

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

if(!$results) {
    echo "<hr>ERROR: " . $mysql->error ;
    exit();
}
echo "new record added called <strong>" .
    $_REQUEST["title"] . "</strong>";

echo "newID is " . $mysql->insert_id;