Jump to content


Photo

Changing Data


  • Please log in to reply
2 replies to this topic

#1 mcmuney

mcmuney
  • Members
  • PipPipPip
  • Advanced Member
  • 358 posts

Posted 29 August 2006 - 06:28 PM

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"?

#2 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 29 August 2006 - 06:51 PM

strtoupper() http://ca3.php.net/m....strtoupper.php
Legend has it that reading the manual never killed anyone.
My site

#3 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 29 August 2006 - 06:56 PM

MySQL has an UPPER() function as well, AFAIK, and you can probably use this on the way in (in the INSERT/UPDATE statement).
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users