PHP Using PHP with MySQL Using Relationship Tables in MySQL Fetching in a While Loop

POD problem with code vs code in video

How to get my code to work as in the video?

1 Answer

I looked your code and found "POD" instead of PDO.

    while ($row = $results->fetch(POD::FETCH_ASSOC)) {
$product["sizes"][] = $row["size"];
return $product;


Oh, I took it though an online service to see, where I was off, it should have caught this :) Thanks.