-
Book Overview & Buying
-
Table Of Contents
Building Online Stores with osCommerce: Beginner Edition
By :
Before we continue, I should mention that we will demonstrate some fairly complex debugging using the example code given in the professional version of the book. Please bear in mind that it is not important for you to have this code in order to follow along—the important thing is you appreciate the manner in which the error was detected and corrected.
Let’s begin with a couple of the easier‑to‑solve syntax problems. PHP will kick up a variety of different errors depending on where and how the syntax problem has caused an error in the script. For example, if you added a line to your code in order to perform a task (perhaps you added an extra echo statement), but get the following screen when you run the script:

Looking at this error, you can see that on line 94 of the feed.php script (don’t worry if you don’t have this particular page yourself—it is a custom page used for this demo), the PHP interpreter expects to find a, or;, but instead it has come across something...
Change the font size
Change margin width
Change background colour