753 posts
  • Has referred 10+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Had an item featured on Envato Market
+4 more
AdamGold says
Of course, because in each loop you reset the value of the variable and then defines it again. You have 2 options: 1. Store it in an array
    foreach($object_id as $o) {
        $array[ $o->object_id ] = $o->object_id;
    }
2. make a joining variable
    foreach($object_id as $o) {
        $variable .= $o->object_id . ',';
    }
I dont quite understand what you mean.. Like what I meant to do now :D
I suggest you to do my 1st idea, but as I see in your first post, you’re trying to get all of the result into one variable with a comma between each one, right? So just copy my 2nd code and you got it.
I GIVE UP .
Why? What didn’t you understand?
444 posts
  • Has been part of the Envato Community for over 4 years
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in United Kingdom
TahaH-Studio says

never mind. I found an alternative. Thanks alot guys. Ivor lock the thread

by
by
by
by
by
by