Jump to content

lukas

New Members
  • Posts

    3
  • Joined

  • Last visited

lukas's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. <?php require_once('../functions/functions.php') foreach(get_xml_catalog() as $product){ echo "<li>$product->title</li>"; }
  2. Hey, Im having some trouble with the PHP code in the Shopping Cart tutorials. I have a VPS running cPanel where I upload to test my code. Im running PHP Version 5.3.21. I essentially keep getting this error: Parse error: syntax error, unexpected T_FOREACH in /home/user/public_html/oop/shopping/html/index.php on line 6 Im currently up to video 3 in the series. I checked my code for bugs, and even uploaded the finished project to see whether its something im doing, but I always get the error above. Was wondering if someone could help? Thanks in advance
×
×
  • Create New...