I have fname and lname in my database, and a name could be stored as JOHN DOE or john DOE or JoHN dOE, but ultimately I want to display it as John Doe
fname being Jo
I'm not sure where and how you want to display it, but if it's on a web-page you might try simply altering the display using CSS. Try adding:
text-transform:capitalize;
to the relevant rule, like this:
.name { text-transform:capitalize;}
if you put the name in a div or span with class="name". Of course, this will not in any way alter the database entry, but I wasn't clear which was preferable.