0
<?php

    $user = 'mgs_user';
    $password = 'pa55word';
    $db = new PDO('mysql:host=localhost;dbname=portfolio', $user, $password);
    $statement = $db->prepare("SELECT * FROM Player_Team");
    $statement->execute();
    $result = $statement->fetchAll();
    print_r($result);
?>

I am not sure what I am doing wrong here. I only get a result of Array ( )

Any advice will be appreciated.

0 Answers0