mATOK Posted October 11, 2006 Share Posted October 11, 2006 hey thereI grab input from a form<tr><th>Phone</th><td><input type="text" name="phone" size="10" /></td></tr>and I store it in a db - telnum INT -but when I retreive the info it's all jumbled and aren't even the numbers I am keying ine.g. 1234567891 returns 1234567891 but 4164882073 returns 2147483647any idea as to what could cause this? Link to comment https://forums.phpfreaks.com/topic/23692-jumbled-number/ Share on other sites More sharing options...
kenrbnsn Posted October 11, 2006 Share Posted October 11, 2006 The number 2147483647 is the largest number that can be stored in a 32 byte integer. Change the field type to varchar(10).Ken Link to comment https://forums.phpfreaks.com/topic/23692-jumbled-number/#findComment-107545 Share on other sites More sharing options...
mATOK Posted October 11, 2006 Author Share Posted October 11, 2006 Thanx! I changed to a double :) Link to comment https://forums.phpfreaks.com/topic/23692-jumbled-number/#findComment-107557 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.