Okay..
So I have this code..
[code=php]
$cPathArray = explode(“_”, $_GET[‘cPath’]);
$cPathArrayCount = count($cPathArray);
$row = 0;
for ($i=0;$i<$cPathArrayCount;$i++) {
$query = “SELECT categories_name, parent_id FROM categories_description
JOIN categories ON (categories_description.categories_id = categories.categories_id)
WHERE language_id = 1 AND categories_description.categories_id = “.$cPathArray[$i];
$category_query = mysql_query($query);
$category = mysql_fetch_assoc($category_query);
//$CategoryName.’_’.$row = $category[‘categories_name’];
$CategoryThingy = $CategoryThingy.’,’.$row.’_’.$category[‘categories_name’];
echo $CategoryThingy;
$row++;
}
And it outputs this comma delimited list for example
[code],0_NCAA,0_NCAA,1_Apparel
How come it does the first one twice? ? .. ie: 0_NCAA, 0_NCAA when if I just echo the $category[‘categories_name’] it doesn’t duplicate them..