* Sunda Cyber Army 2k17 *
Indonesia Defacer ~
<!-- php results.php file -->
<?php
echo "form info:";
var_dump($_REQUEST);
echo "<br><br>hello " . $_REQUEST["fullname"];
// Step 1: connect to database
$host = "webdev.iyaserver.com";
$userid = "YOUR_CPANELNAME";
$userpw = "YOUR_CPANEL_PW";
$db = "dent_dvd";
include "../pdloginvariables.php";
$mysql = new mysqli(
$host,
$userid,
$userpw,
$db);
if($mysql->connect_errno) {
echo "db connection error : " . $mysql->connect_error;
exit();
} else {
echo "db connection success!";
}
$sql = "SELECT * from movieView WHERE genre = '" .
$_REQUEST["genre"]. "'";
echo "<hr>" . $sql . "<hr>";
$results = $mysql->query($sql);
if(!$results) {
echo "SQL error: ". $mysql->error . " running query <hr>" . $sql . "<hr>";
exit();
}
else { // you can choose to delete the else clause
echo "<br>all good... here come the results...<br>";
}
echo "<br<br>Returning " . $results->num_rows. " records.";
while( $currentrow = $results->fetch_assoc() ) {
echo "Title: " . $currentrow["title"] . " - " . $currentrow["genre"];
echo "<br>";
}
?>