I am capturing 2 sets of data in 2 mysql columns:
Name | Number
-----------------------
Anonymous | 123456789
anonymous | 0123 456 789
I want to standardise the format of each column to be 1) capitalised and 2) number formated with a particular pattern:
Name | Number
-----------------------
Anonymous | 0123 456 789
Anonymous | 0123 456 789
Is there a way I can do this via setting a type/attribute in the mysql database itself (in the same way zerofill adds zeros in an INT(X) type), or do I need to format the data before entry to the database? If the latter, how would I do this with Javascript/Jquery?
Thanks