* Sunda Cyber Army 2k17 *
Indonesia Defacer ~
<?php
$host = "webdev.iyaclasses.com";
$userid = "dent";
$userpw = "";
$db = "dent_dvd";
include "../pdloginvariables.php";
$mysql = new mysqli(
$host,
$userid,
$userpw,
$db
);
if($mysql->connect_errno) {
echo "Connection ERROR: " . $mysql->connect_error;
exit();
} else {
echo "Db connection is good";
}
?>
<html>
<head>
<title>Search films</title>
</head>
<body>
<form action="results.php">
Title:<input type="text" name="title"><br>
Rating: <select name="rating">
<option>G</option>
<option selected=''>PG</option>
<option>PG-13</option>
<option>R</option>
</select>
<br>
Genre: <select name="genre">
<option>Any</option>
<?php
$sql = "SELECT * FROM genres";
$results = $mysql->query($sql);
if(!$results) {
echo "SQL ERROR: <br>" . $mysql->error . "<br>" . $sql;
exit();
} else {
echo "DB query successful!";
}
while($currentrow = $results->fetch_assoc()) {
echo "<option>" . $currentrow["genre"] . "</option>";
}
?>
<option>Sci-fi</option>
<option>Comedy</option>
<option>Action/Adventure</option>
</select>
<br>
Sort order: <select name="sortorder">
<option>title</option>
<option>genre</option>
<option>rating</option>
</select>
<input type="submit">
</form>
</body>
</html>