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

Using an if else statement for two functions
Not display a particular image of the array php [duplicate]
Possible to transfer session between 2 apache php instances
Symfony2: How to call PHP function from controller?
Laravel inserting “null” into database from form input.
Updating a database column (vertically) with an array
Filtering aerospike LLIST
How to validate file except image in yii2 framework
Generate time dimension in mysql
Items not storing to session
php | ddd - How to modelize this?
Is it possible to redirect a page without using javascript after php header?
SyntaxError: Unexpected end of input at parse
Why does bootstrap not show some of my elements?
How to sign outgoing soap request without using wsf/php?
Can ZfcUser be extended to support sub-users?

Categories

HOME
class
verification
shinyapps
cucumber
ews
azure-mobile-services
jpa-criteria
solution
sap-fiori
rest-assured
exe
word2vec
significance
angular2-highcharts
error-logging
altium-designer
connection-refused
candlestick-chart
openbravo
ccavenue
django-import-export
spring-annotations
cube
laravel-4.2
mdns
envoy
source-insight
actframework
universal
custom-keyboard
polyml
bean-validation
jfxtras
xvfb
nanogallery
elastica
spooler
rightnow-crm
ilrepack
jgrapht
glassfish-4.1
sesame
gmaps.js
google-identity-toolkit
e
bilinear-interpolation
fuzzer
perforce-integrate
apache-pig-grunt
as3-api
ioexception
juniper-network-connect
ruby-on-rails-4.1
directx-9
astropy
http.client
domino-designer-eclipse
artisan
uno
code-complexity
radius-protocol
proxy-server
progress-db
revmob
django-facebook
axacropdf
arel
multiscaleimage
idispatch
zend-pdf
thejit
pageheap
firebird1.5
zend-server-ce
dynamic-c
delphi-prism
qt-mobility
mongrel2
ccl
activestate
prism-2
remote-working

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