* Sunda Cyber Army 2k17 *
Indonesia Defacer ~
<?php
$host = "webdev.iyaserver.com";
$user = "dent";
$userpw = "";
$db="dent_dvd";
include "../pdloginvariables.php";
$mysql = new mysqli( $host, $user, $userpw, $db );
if($mysql->connect_errno) {
echo "ERROR in Database connection: ";
echo $mysql -> connect_error;
exit();
}
?>
Search for movies:<br>
<form action="results.php">
Title: <input type="text" name="title">
Genre:
<select name="genre">
<option value="ALL">SELECT a genre:</option>
<option value="ALL">-----------------</option>
<?php
$sql = "SELECT genre from genres";
$results = $mysql->query($sql);
if(!$results) {
echo "SQL/DATABASE PROBLEM!<br>";
echo "SQL:" . $sql;
echo "DB ERROR: ". $mysql->error;
}
while ( $currentrow = $results->fetch_assoc()) {
echo "<option>" . $currentrow["genre"] . "</option>";
}
?>
</select>
Rating:
<input type="submit">
</form>