I am fairly new to this and to forums .... so please can someone help me.

I have this bit of code that is driving me insane. I cant begin to tell you how many times I have tried to go over it. What I am trying to do is retrieve the string of search critera from the DB, split it up and then make make the Checkboxes Checked if they were check for the search.

The section of code is as follows and the error message I am getting is :
Parse error: syntax error, unexpected T_FOREACH when I try run the code.
Dreamweaver says that there is a syntax error on line 4.

$myCriteria = substr($mySearch,0,-1);
$XPcolors= explode("|",$myCriteria);*
$seeds=array("SouthAfrica","Botswana","Namibia","Mauritius","Mozambique","Kenya","Tanzania","Uganda" ,"Zimbabwe","Zambia");

foreach ($seeds as $supercolor) {
if($supercolor == $XPcolors) {
*echo "<option value=\"$supercolor\" SELECTED>$supercolor</option>";
*} else
**echo "<option value=\"$supercolor\">$supercolor</option>";


Please Help !