nickbunyun Posted April 24, 2008 Share Posted April 24, 2008 i have made a field for phone numbers.. and when i type them in.. even tho i tried different phone numbers such as 8741234567 or 7704551234 it shows up like this in the database 2147483647 riu 2147483647 rds 2147483647 esting 2 2147483647 llards2 2147483647 ikless 2147483647 phonenr field infos int(10) Null=no Link to comment https://forums.phpfreaks.com/topic/102724-int-in-db-not-showing-correctly/ Share on other sites More sharing options...
The Little Guy Posted April 24, 2008 Share Posted April 24, 2008 try changing it to varchar(10) Link to comment https://forums.phpfreaks.com/topic/102724-int-in-db-not-showing-correctly/#findComment-526005 Share on other sites More sharing options...
Daniel0 Posted April 24, 2008 Share Posted April 24, 2008 It's too large for a signed integer. It cannot be higher than 2,147,483,647 for signed integers and 4,294,967,295 for unsigned integers. Try bigint instead. Link to comment https://forums.phpfreaks.com/topic/102724-int-in-db-not-showing-correctly/#findComment-526152 Share on other sites More sharing options...
nickbunyun Posted April 24, 2008 Author Share Posted April 24, 2008 thanks.. i changed it to varchar and it works wonderful! thanks Link to comment https://forums.phpfreaks.com/topic/102724-int-in-db-not-showing-correctly/#findComment-526452 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.