I'm having trouble getting info from my MySQL database.

Here is my code : 

```
/********************
* Database Info
********************/

$host = "localhost";
$user = "admin";
$pass = "admin@";
$database = "db_admin";

/********************
* Database connection
********************/

$con = mysqli_connect( $host, $user, $pass, $database );
if (mysqli_connect_errno ()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error ();
}

$result = array();
if (isset($_POST['ID'])) {
    $id = $_POST['ID'];
    $query = "SELECT * FROM Servers WHERE PID='" .$id. "'";
    $result = mysqli_query($con, $query);
}

print("<pre>".print_r($result,true)."</pre>");

```

**My first question**, Did I use "isset" function currectly?
Because it doesnt seem like it is actually going though the if statement.

The Url I am using is : `#..com/view.php?ID=1`

**My second question**, Did I use the $query correctly?
Because I echo $id and that echoed out a "MySQL Object()"

**Finally**, the `print` printed out `"Array()"`

I'm just starting on PHP, Thanks for the help :)