Topic: Mysql Phone numbers (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=31830" title="Pages that link to Topic: Mysql Phone numbers (Page 1 of 1)" rel="nofollow" >Topic: Mysql Phone numbers <span class="small">(Page 1 of 1)</span>\

 
Hustluz
Bipolar (III) Inmate

From:
Insane since: Jun 2003

posted posted 05-25-2010 01:31

My question is what is the best way to store a phone number with extension in a mysql database. Should it be a string or a int number?

Tyberius Prime
Maniac (V) Mad Scientist with Finglongers

From: Germany
Insane since: Sep 2001

posted posted 05-25-2010 08:56

Certainly a string, or how are you going to encode +49 for a number in Germany in an int?

Keep in mind, you should impose formating rules on a phone number when outputting it.

So long,

->Tyberius Prime

chrisadam11
Neurotic (0) Inmate
Newly admitted

From:
Insane since: Sep 2010

posted posted 09-20-2010 13:51

edit tp: spam removed

(Edited by Tyberius Prime on 09-20-2010 15:17)



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu