Jump to content

Archived

This topic is now archived and is closed to further replies.

mATOK

jumbled number

Recommended Posts

hey there

I 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 in

e.g. 1234567891 returns 1234567891 but 4164882073 returns 2147483647
any idea as to what could cause this?

Share this post


Link to post
Share on other sites
The number 2147483647 is the largest number that can be stored in a 32 byte integer. Change the field type to varchar(10).

Ken

Share this post


Link to post
Share on other sites

×

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.