The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
PHP implode is exploding my mind!!!!!!
What i want to do: pull all forum ids having a specific parent forum, and place them in a string ( $newsfeedforumids ) so they can be added to end of external.php lilke this:
PHP Code:
My query: PHP Code:
Code:
<a href="$vboptions[bburl]/external.php?type=rss2&forumids=$newsfeedforumids" target="_blank">Click for Feed</a> bburl/external.php?type=rss2&forumids=7,7 What am i doing wrong? |
#2
|
||||
|
||||
You are misunderstanding what mysql_fetch_array() does. This fetches one row of the result set as an array, not the entire result set. You need a 'while' loop to fetch the results row by row to build your array of forumids.
|
#3
|
||||
|
||||
thanks Paul, this worked for me:
PHP Code:
|
#4
|
||||
|
||||
Quote:
|
#5
|
||||
|
||||
cool, thanks again for the help!
|
#6
|
||||
|
||||
Quote:
PHP Code:
|
#7
|
||||
|
||||
good point Codemonkey, thanks!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|