* Sunda Cyber Army 2k17 *
Indonesia Defacer ~
<html>
<head>
<title>Search films</title>
</head>
<body>
<form action="results.php" method="get">
Title:<input type="text" name="title"><br>
Rating: <select name="rating">
<option>ALL</option>
<option>G</option>
<option selected=''>PG</option>
<option>PG-13</option>
<option>R</option>
</select>
<br>
Genre: <select name="genre">
<option value="ALL">ALL</option>
<?php
$host = "webdev.iyaserver.com";
$userid = "<youruserid>";
$userpw = "<yourpw>";
$db = "<database name>";
include '../pdloginvariables.php'; // you can ignore/skip this line
$mysql = new mysqli(
$host,
$userid,
$userpw,
$db
);
if($mysql->connect_errno) {
echo "db connection error : " . $mysql->connect_error;
exit();
}
$sql = "SELECT * FROM genres";
$results = $mysql->query($sql);
if(!$results) {
echo "DATABASE PROBLEM!!!! " . $mysql->error;
exit();
}
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>