I have a table in mysql with a field called "userId":
`userId` int(20) NOT NULL
Insert statement is:
$result = mysql_query("INSERT INTO users (userId, firstName, lastName, dateCreated) VALUES (".$me['userId'].", '".$me['first_name']."', '".$me['last_name']."', CURDATE()) ")or die(mysql_error());
The value of userId when echoed in php is 100000517980247, but when inserted it changes to 2147483647. When I insert it into a varchar field it's fine. This has to be something really simple but I searched around a bit and I'm just not seeing it.