Hi guys
I think I need to use a do while loop for this. I want to place the first id in the array but not check it the first time through the loop and place it into the $CC var. On the next go arounds I will to check to see if it's already in there. If it is then I would like to skip it.
//BUILD ID ARRAY
$idList[] = $idline[id] ;
do{
//CREATE CC LIST
$CC.="D$getline[id],";
}
while (!in_array("$getline[id]", $idList));