* Sunda Cyber Army 2k17 *
Indonesia Defacer ~
<?php
if(empty($_REQUEST["recordid"])) {
echo "Error. Delete page with no recordid";
exit();
} else {
echo "About to delete a movie.";
}
if($_REQUEST["confirm"] != "yes") {
echo "please confirm you want to delete.";
?>
<form action="delete_drilldown.php">
<input type="hidden" name="recordid"
value="<?php echo $_REQUEST["recordid"] ?>">
<input type="hidden" name="confirm" value="yes">
<input type="submit" value="Confirm Deletion">
</form>
<?php
exit();
}
$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 = "DELETE FROM dvd_titles WHERE dvd_title_id=" .
$_REQUEST["recordid"];
// echo "<hr>SQL:<br>" . $sql;
exit("At this point we would NORMALLU
process the following SQL to delete your movie:
<br>" . $sql);
// but instead stopping the page.
$results = $mysql->query($sql);
if(!$results) {
echo "PROBLEM. Did NOT delete the movie.";
exit();
}
echo "Your movie was deleted!";
?>
<a href="search_drilldown.php">Back to search page</a>.