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

POD problem with code vs code in video

https://gist.github.com/anonymous/e37f1437551cc670ee9c

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

1 Answer

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

<?php
    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.