title: Foreach results in numbered format
body: <p>I am using codeingiter and have soms results that i am showing from a database. The results are shown using PHP as follows:</p>
  
  <pre><code> &lt;?php
          if(isset($foo)){
              foreach($foo as $bar){ ?&gt;
              &lt;ol&gt;&lt;li&gt;
                  &lt;div class="results"&gt;  
                      &lt;p class="name"&gt;&lt;?php echo $bar['name']; ?&gt;&lt;/p&gt;
                      &lt;p class="address"&gt;&lt;?php echo $bar['address']; ?&gt;&lt;/p&gt;
                      &lt;p class="address"&gt;&lt;?php echo $bar['postcode']; ?&gt;&lt;/p&gt; 
                      &lt;span&gt;&lt;?php number_format($bar['miles'],3) ?&gt;&lt;/span&gt; miles               
                  &lt;/div&gt;
              &lt;/li&gt;&lt;/ol&gt;  
              &lt;?php
            }
          }
          ?&gt;
  </code></pre>
  
  <p>I've also tried adding the class 'results' to the ol li.results and no luck. Have added a border and the border wraps around each result so i know my tags are in the right place.
  CSS:</p>
  
  <pre><code>ol li {
      border:1px solid red;
      list-style-type: decimal;
  }
  </code></pre>
  
  <p>In the reset.css i had this:</p>
  
  <pre><code>loads...of...elements including ul, ol and li {
      margin: 0;
      padding: 0;
      border: 0;
      font-size: 100%;
      font: inherit;
      vertical-align: baseline;
  }
  </code></pre>
  
  <p>I removed the ol, li from this and i got the numbers working but all have 1. for each result rather than 1, 2 3</p>
  
  <p>These are shown as a list of addresses and i would like to have them numbered so the first one would have 1.RESULT 1, 2.RESULT 2 and so on... I've tried to use the ordered list tag and nothing seems to show up regarding numbers. i have checked in firebug and the tag is firing out for each one. Is this a css issue or the way PHP is showing the results?</p>
  
  <p>Any help would be much appreciated.</p>