Correctly displaying menu drop down value when it could be one of two, eg 'Kenya' or 'kenya'
Basically I have a table where the country field was originally populated with a capital letter, eg Kenya. But now they really need to be all lower case as they will form part of a URL. eg www.safariawards.com/country/propertyname/
So at the moment the code in the Select Box on my update page looks like:
<option value="kenya" <?php if (!(strcmp("kenya", $row_WADAlodges['Country']))) {echo "selected=\"selected\"";} ?>>Kenya</option>
Which is fine for any that have been changed from 'Kenya' to 'kenya'. But for any that are still in the table as 'Kenya', the select box isn't displaying the correct country, presumably because it is case sensitive. So will always show the firs option in the list, in this case Botswana.
So my question is, is it possible to display 'Kenya' here if the field is populated with either 'Kenya' or 'kenya'?
I tried:
<option value="kenya" <?php if (!(strcmp("kenya" or "Kenya", $row_WADAlodges['Country']))) {echo "selected=\"selected\"";} ?>>Kenya</option>
But that doesn't seem to work.
Thanks.