I have this code:
while (list ($key, $val) = each ($ethnicity)) {
if ($val == '')
$ethnicity = '';
break;
}
and I get an error saying: Assignment in condition, Change to ==
But I can’t change it to == or it’s not working.
Anyone care to explain to me why this is happening?
edit.
the error is for the first line.
also i get the same error here:
while (($row = mysql_fetch_row ($result)))
{
$sms_providerchecked0= $row[3];
$to_return_email12 = $cell."@$sms0";
}
in the first line
I don’t have zend studio so this might or might not do the trick…