Why doesn't this work? The output looks like " test " but the character is more than just a blank.Code:echo TEXT_PRODUCT_OPTIONS; if ($options_name[$i] == "test") { echo "works"; } else { echo $options_name[$i]; }
Thanks!
Why doesn't this work? The output looks like " test " but the character is more than just a blank.Code:echo TEXT_PRODUCT_OPTIONS; if ($options_name[$i] == "test") { echo "works"; } else { echo $options_name[$i]; }
Thanks!
Can we see this happening live? Is it possible that you added a space at the end of the option name when creating it? Not sure if that would cause a mismatch, but it couldn't hurt to check. Maybe you can look straight into the database table to see the value of that field.
And what "character is more than just a blank"?