meridionale Posted March 13, 2006 Share Posted March 13, 2006 Hi everyone!I have a website that uses mysql/phpmyadmin for an auto update survey. For the different fields, I have people who enter the same thing but in different ways, for example:User 1: EconUser 2: EconomicsUser 3: Economics MastersUser 1: U of Cal-BerkeleyUser 2: BerkeleyUser 3: University of California-BerkeleyI'd love a way to clean up how everything looks, because it also affects the sort. So, I'm basicly asking, is there a way for me to put an auto clean up where someone who enters "Econ" automatically has their entry turned to "Economics" or "U of Cal-Berkeley" to "Berkeley" in the database?Thanks :) Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted March 14, 2006 Share Posted March 14, 2006 Yes, it's called normalization, specifically, third normal form. Do a google search for it.The over all gist of it is to have a seperate table that stores the values, which those values are presented to the user...so the user can only select the ones that you have presented to them, which elminates them making mistakes.Aside from normalizing your db, there is no good way of doing what you want "automatically". 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.