Echoing more than 1 id
<p>I would like to echo more than 1 id from my database, how do I display more than 1 id in my index page?</p>

<p>My Function:</p>

<pre><code>function query($sql) {
 global $conn;
 $results = mysql_query($sql, $conn);
 $rows = array();
 if(!is_bool($results))
     while($row = mysql_fetch_assoc($results)) 
         $rows['id'] = $row;
    return $rows;
}
</code></pre>

<p>My Index page:</p>

<pre><code>&lt;?php foreach($funds as $fund) { ?&gt;

 &lt;td width="87%" valign="top"&gt;&lt;ul id="funds" class="bodycopy2" style="margin:0;"&gt;
  &lt;li&gt;&lt;?php echo $fund['fund']; ?&gt;&lt;span class="price"&gt;&lt;div align="center" class="h1"&gt;&lt;strong&gt;&lt;br /&gt;R123.45&lt;/strong&gt; &lt;br /&gt;as at &lt;br /&gt;1 January 2012&lt;/div&gt;&lt;/span&gt;&lt;/li&gt;
  &lt;li&gt;&lt;?php echo $fund['fund']; ?&gt;&lt;span class="price"&gt;&lt;div align="center"   class="h1"&gt;  &lt;strong&gt;&lt;br /&gt;R200.45&lt;/strong&gt; &lt;br /&gt;as at &lt;br /&gt;1 January 2012&lt;/div&gt;&lt;/span&gt;   &lt;/li&gt;
  &lt;li&gt;&lt;?php echo $fund['fund']; ?&gt;&lt;span class="price"&gt;&lt;div align="center" class="h1"&gt;   &lt;strong&gt;&lt;br /&gt;R150.00&lt;/strong&gt; &lt;br /&gt;as at &lt;br /&gt;1 January 2012&lt;/div&gt;&lt;/span&gt;&lt;/li&gt;
 &lt;/td&gt;
     &lt;/tr&gt;

     &lt;/table&gt;
    &lt;?php } ?&gt;
</code></pre>
