* Sunda Cyber Army 2k17 *
Indonesia Defacer ~
<?php
if(empty($_REQUEST['title'])) {
echo "Please go the <a href='insertform.php'>insert</a> form page.";
exit();
}
if(empty(trim($_REQUEST['title']))) {
echo "You must enter a movie title.";
exit();
}
echo "Output all form variables:<br>";
print_r($_REQUEST);
echo "<hr>";
$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 error : " . $mysql->connect_error;
exit();
}
$sql = " INSERT INTO dvd_titles " .
" (title, release_date, award, label_id, sound_id, genre_id, rating_id, format_id)" .
" VALUES ( " .
" 'title', " .
" '2016-09-09', " .
" '', " .
" 2, " .
" 2, " .
" 2, " .
" 2, " .
" 2 " .
")";
echo "<hr>SQL:<br>" . $sql . "<hr>";
$results = $mysql->query($sql);
if(!$results) {
echo "DB ERROR!<hr>";
echo "FORM info " . print_r($_REQUEST) . "<hr>";
echo "SQL: " . $sql . "<hr>";
echo mysqli_query_error($conn);
exit();
}
echo "New title <strong>" . $_REQUEST['title'] . "</strong> added. " .
" The new record has the ID/PK of " .
$mysql->insert_id;