Jump to content

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?

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.