I'm having trouble with the code below. What I'm trying to do is query a database to get a list of colors that a particular item comes in. The problem I'm having is I'm a little confused on how to output the list of colors with a comma in between each one. Example" Red, Blue, Black The way I have it now in the code below is: print ("$variable2, "); which of course prints an extra comma at the end of the list of colors. [code] <? //Color Query //error message (not found message)begins $XX = "Colors Not Found\n"; //query details table begins $query = mysql_query("SELECT coas50.pro_color_look_up.Color_ID, coas50.pro_color_look_up.Item_ID, coas50.pro_item.Description, coas50.pro_item.Item_Number, coas50.pro_color.Color FROM coas50.pro_color_look_up, coas50.pro_item, coas50.pro_color WHERE (coas50.pro_item.Item_Number = '$Item_Number') AND (coas50.pro_item.ID = coas50.pro_color_look_up.Item_ID) AND (coas50.pro_color_look_up.Color_ID = coas50.pro_color.ID) ORDER BY Color"); if ($query == FALSE) { die ('Query not working! ' . mysql_error()); } while ($row = @mysql_fetch_array($query)) { $variable2=$row['Color']; //table layout for results //prints extra comma at the end of results print ("$variable2, "); } //below this is the function for no record!! if (!$variable2) { print ("$XX"); } //end ?> [/code] Does anyone have an idea of how I can get this to work. It seems like it should be an easy solutions. Any help would be greatly appreciated. Thank you so much!!!