-6

I'm giving correct contact number in the form field but it gets saved into database in some random digits,Why so?.i'm not using any encryption method!

Firdous bhat
  • 105
  • 7

1 Answers1

0

INT has a max value of 2147483647 (or 214-748-3647).

So, 555-555-5555 will get rewritten to the max it can store.

Phone numbers are NOT integers, so you shouldn't store them like that. All sorts of problems can happen - 055-555-5555 would be stored incorrectly as 55-555-5555, 555-555-5555 x1234 can't be entered, etc.

ceejayoz
  • 176,543
  • 40
  • 303
  • 368