LuKreme wrote:

 `ip` varchar(10) NOT NULL DEFAULT '',

10?

I'm missing some of the context here, but usually if someone is storing an ip in 10 characters it's because they're storing the ip number rather than the ip address.

r...@haven:~# perl -e 'print length(256*256*256*256)."\n";'
10
r...@haven:~#

Still, if you were doing that, you'd want to use an integer rather than a varchar preferably.

--
Mike Cardwell - IT Consultant and LAMP developer
Cardwell IT Ltd. (UK Reg'd Company #06920226) http://cardwellit.com/

Reply via email to