View Single Post
Old 02-19-2005, 04:33 AM  
venturi
Confirmed User
 
Join Date: Aug 2001
Location: An Oasis atop a High Desert Mesa
Posts: 386
Set the field to VARCHAR(25)

That should handle all international phone numbers easily. VARCHAR(16) *should* handle things but people are weird when they type phone numbers.

DO NOT make it a TEXT field if you want it to be easily indexed. I see morons constantly that use TEXT as the default field type in mySQL. Not only is it cumbersome to index without performance hits, it takes up horrendous amounts of space in the database as it reserves 64K per row.

A phone number should never be set to TEXT in mySQL.
__________________
I'm not a porn monger. I'm a porn ... STYLIST!
Buildit Cheap, build it Fast, Build it Right. - Pick Two.
venturi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote