ok take a look at this result returned from a MySQL query
6-06-a BK
6-06-a WF
6-06-a PYP
6-06-b WF
6-06-c MN
6-06-c WF
6-06-c PYM
6-06-c PYM
These are ID i need to display the relevent images and links on a page
However, i DONT want the month_id (6-06-n) to repeat. I need the style_id (WF, PYP, etc) to be displayed in one string.
eg:
6-06-a has 3 style_id attached to it (according to the results)
so i need the reuslt to be formated in PHP to produce the following
6-06-aBKWFPYP
6-06-bWF
etc..
sorry about the poor explanation.
Here is the code used to fetch the above results:
for( $i=0; $i<$num_results2; $i++ )
{
$style = mysql_fetch_array($result2);
echo "<p><b>".$style['collection_month_id']."</b>\n";
echo "<b>".$style['style_id']."</b>";
}