* Sunda Cyber Army 2k17 *
Indonesia Defacer ~
<?php
$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 = "SELECT * FROM movieView where rating='PG'";
$results = $mysql->query($sql);
if(!$results) {
echo "SQL error: ". $mysql->error;
exit();
}
$json_array = array();
while($currentrow = $results->fetch_assoc()) {
$json_array[] = $currentrow;
}
echo "<pre>";
print_r($json_array);
echo "</pre>";
exit();
$json2 = json_encode($json_array);
echo $json2;