Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP Build a Simple PHP Application Integrating with PayPal Building the Shirt Details Page

Elena Paraschiv
Elena Paraschiv
9,938 Points

change in products.php does not display

Hi,

I tried to remove some of the sizes, but the change does not display when I refresh the shop. Should I make any additional change?

i.e. :

<?php
$products = array();
$products[101]= array(
    "name" => "Logo Shirt, Red",
    "price" => 18,
    "img"  => "img/shirts/shirt-101.jpg",
    "product_description" => "monkey",
    "paypal"=>"MLR8KT66AUMDN",
    "sizes" => array("Small","Medium","Large")
 );

Here I removed the X-large, but it still displays

Imgur

1 Answer

Elena,

Did you by any change clear your internet cache? Sometimes the browser will use the cached data instead of the changed data. Clear your cache and temporary internet files and try again and see if that works.

Cheers!