Jump to content

query failed: Out of range value


clankill3r

Recommended Posts

I get a "query failed: Out of range value" error,

this is the value: 15660018291

 

what i only don't get is that tweet_id has a int type of 30 (as in int(30)).

The id to add is only 11 long..

 

$twitter_id fleuragemapvv 
$tweet_id 15660018291
$tweet Reactie op Klink in opinieartikel in Volkskrant morgen
$reply_to_id 
$date 2010-06-08 00:22:21

query failed: Out of range value for column 'tweet_id' at row 1 INSERT INTO tweets VALUES (NULL, 'fleuragemapvv ', '15660018291', 'Reactie op Klink in opinieartikel in Volkskrant morgen', '', '2010-06-08 00:22:21')

Link to comment
https://forums.phpfreaks.com/topic/238815-query-failed-out-of-range-value/
Share on other sites

thanks that worked

 

one more thing,

 

often the $reply_to_id is not set,

however that seems to give problems when i want to insert it in the database

 

now i tried this:

 

if($reply_to_id == ""){

$reply_to_id = NULL;

}

 

but that don't work either.

 

I also tried it with setting the default value for $reply_to_id in the database to NULL.

So how can this be fixed?

 

Archived

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

×
×
  • Create New...

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.