I have a database that has some data that is all in caps--we want to display it in sentence case. Yeah...I shoulda taken care of it when the data was originally input...but I didn't.
I have a select drop down menu that I want to put in sentence case. I thought I could just use ucwords but it doesn't seem to work in the option's menu.
Any ideas?
if($coachID==$row['coachID'])
{echo "<option selected value='".$row['coachID']."'>". ucwords($row['coachLast']) . ", " . ucwords($row['coachFirst']) . " R#" . $row['region'] . "</option>";
}
echo "<option value='".$row['coachID']."'>". $row['coachID'] . ", " . ucwords($row['coachLast']) . ", " . ucword($row['coachFirst']) . " R#" . $row['region'] ."</option>";