Jump to content

Recommended Posts

2,147,483,647 is the highest number possible using 32-bit unsigned integer as a variable type. If you need a number higher than 2,147,483,647 then try a 64-Bit Long data type. These support numbers from negative 9,223,372,036,854,775,808 to positive 9,223,372,036,854,775,807, Zero, and Null.

Link to comment
https://forums.phpfreaks.com/topic/201434-2147483647/#findComment-1056850
Share on other sites

It's a input field for users to enter their phone number. Under what circumstances, would the number saved be 2147483647 if the user did not input this number? The field has a 10 character limit and does not accept blanks.

 

Yes, the field type happens to be "int(50)".

 

Any number HIGHER than "2,147,483,647" will cause the int 2,147,483,647 to be inserted. So.. 2147483648, 6184528348, 9683495836, or anything else will cause 2147483647 to be inserted. Change your data type from int(50) to something like long(15)

Link to comment
https://forums.phpfreaks.com/topic/201434-2147483647/#findComment-1056857
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.