Foreach statement… I think?
-
Alright – when a user leaves a comment on a post they can leave an overall rating. I store this rating in a variable, lets call it $overall.
So basically I need to get each comment’s $overall value, for every single comment for that particular post.
Would I use a foreach statement? Like, foreach $post_id get $overall foreach comment…
I’m looking for some guidance on the best way to approach this.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Foreach statement… I think?’ is closed to new replies.