753 posts
  • Sold between 10 000 and 50 000 dollars
  • Referred between 10 and 49 users
  • Author had a Free File of the Month
  • Exclusive Author
  • Has been a member for 5-6 years
  • Bought between 1 and 9 items
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
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
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 4-5 years
  • United Kingdom
TahaH-Studio says

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

by
by
by
by
by
by