php


Issue in saving contact number into database [duplicate]


This question already has an answer here:
Incorrect Integer (2147483647) is inserted into MySQL?
7 answers
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!
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.

Related Links

Cakephp 2.0, CPanel and Shell scripts
PUT request returns 406 (Not acceptable) coming from Backbone.js to my REST-ful PHP page
Unescaped dollar sign doesn't throw error; PHP processing edge case?
imagettftext() - Cannot find font location
Speed of PHP vs JavaScript?
Prevent duplicates in MYSQL database from uploaded CSV
PHP: curl writes to memory instead of giving a file stream
Escaping quotes - moving from PHP4 to PHP5
How can i store the values of array_count_values in array of object?
Symfony2 & Doctine2 : removeElement does'nt work
Replacing img tag with preg_replace and regular expressions
How to send email with PHP's mail() function
PHP Header Redirect Not working on site, have researched, still need assistance
Variable not working in PHP [closed]
how to ignore first loop and continue from second in foreach?
POST a SESSION variable on another page

Categories

HOME
rust
visual-studio
functional-programming
yaml
facebook-messenger
dotnetnuke
opencv-python
d3.js
enums
message-queue
ant
docker-cloud
cryptography
angular-meteor
graphql-js
mutation-testing
scrape
chromecast
live-streaming
sonata
mailgun
django-rq
hidden
word2vec
checkout
spam
parceler
libgit2
python-appium
miniprofiler
bitbake
microprocessors
social-networking
substance
location-services
riotjs
amazon-kms
grails-2.5
xvfb
eclipse-gmf
strapi
microkernel
contactless-smartcard
moinmoin
bit-shift
music21
embedded-v8
connect-direct
sesame
business-rules
nitrousio
ndk-build
pyaudio
always-on-top
callouts
coovachilli
unsigned
noclassdeffounderror
jeditable
polymerfire
outlook.com
deeplink
arbre
supersocket.net
alwayson
maven-shade-plugin
tkx
adhoc-polymorphism
windows-rt
treeline
neo4jphp
grails-2.3
sql-view
google-code-prettify
sly-scroller
asp.net-mvc-3-areas
tfs-sdk
idispatch
gitx
story
thejit
django-apps
rtd
servlet-container
qcar-sdk
ios-4.2
mongrel
multiple-users
cleartype
asdoc
iphone-sdk-3.1.3

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App