mcmuney Posted August 29, 2006 Share Posted August 29, 2006 I have an input field where users type in information, but they use upper, lower and mixes. How can I update all the existing data on the DB to be all "Capitalized"? Quote Link to comment Share on other sites More sharing options...
AndyB Posted August 29, 2006 Share Posted August 29, 2006 strtoupper() [url=http://ca3.php.net/manual/en/function.strtoupper.php]http://ca3.php.net/manual/en/function.strtoupper.php[/url] Quote Link to comment Share on other sites More sharing options...
fenway Posted August 29, 2006 Share Posted August 29, 2006 MySQL has an UPPER() function as well, AFAIK, and you can probably use this on the way in (in the INSERT/UPDATE statement). Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.