Code Monkey home page Code Monkey logo

Comments (4)

DarrenCook avatar DarrenCook commented on August 30, 2024

Is that code part of Phirehose? It looks like your application code. (Not knowing anything about your application, or your database, I would guess that your bug fix is correct, as $where is being made inside the for loop but not being used.)

from phirehose.

fennb avatar fennb commented on August 30, 2024

Hey @inakimalerba,

Yep, it looks like that code is part of either your application, or perhaps a larger framework that you are using rathe than Phirehose itself?

If you let us know where that code came from, we might be able to point you in the right direction.

Cheers!

from phirehose.

compwright avatar compwright commented on August 30, 2024

Yes, that does make sense.

On Thursday, June 21, 2012, Inakimalerba <
[email protected]>
wrote:

First of all, sorry for my bad english and, second, THANKS for this
awesome code.

I was having some problems when working with big amounts of tweets. I was
getting this error code:

Object of class stdClass could not be converted to string

After searching for hours, i found this:

foreach ($entities->hashtags as $hashtag) {

$where = 'tweet_id=' . $tweet_id . ' ' .
   'AND tag="' . $hashtag->text . '"';

 if(! $oDB->in_table('tweet_tags',$hashtag)) {

   $field_values = 'tweet_id=' . $tweet_id . ', ' .
     'tag="' . $hashtag->text . '"';

   $oDB->insert('tweet_tags',$field_values);
 }

}

After changing

 if(! $oDB->in_table('tweet_tags',$hashtag)) {

for

 if(! $oDB->in_table('tweet_tags',$where)) {

it began working perfect.

Is this right?

Thanks


Reply to this email directly or view it on GitHub:
#23

from phirehose.

inakimalerba avatar inakimalerba commented on August 30, 2024

hey guys, i got confused. The problem was with the app i was using, sorry!. Anyway, thanks a lot.

from phirehose.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.