Re: Need to refine this:
| From: | Douglas Douglas | Date: | Wed, 04 Feb 2004 05:48:04 +0000 |
| Subject: | Re: Need to refine this: | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-176760@lists.php.net to get a copy of this message | ||
Just my two cents :)
$temp = "";
echo "<table>\n";
while ($mydata = mysql_fetch_object($myquery)) {
if ($temp != $mydata->district) {
$temp = $mydata->district;
echo "<tr
bgcolor=\"#CCCCCC\"><td>$mydata->district</td></tr>\n";
}
echo "<tr bgcolor=\"#CCCCCC\"><td>$mydata->city</td>
<td>$mydata->place</td>
<td>$mydata->meetingtime</td></tr>\n";
}
echo "</table>\n";
Hope it helps.
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/