The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I am wanting to take data from my table associate and have it separated by a comma between each entry.
I have the following: PHP Code:
entry1,entry2,..... Thanks, Parker |
#2
|
||||
|
||||
![]()
so let me guess this right, you have a colum which has the data as "john jane jack jude july" and you want it to read "john, jane, jack, jude, july"?
|
#3
|
|||
|
|||
![]()
while ($rows=$DB_site->fetch_array($associategroups)) {
$ass_groupurl=$rows->associateurl; $ass_group=$rows->associate; eval('$associatenames .= "' . fetch_template('associate_names') . '";'); $col++; } eval('$associate .= "' . fetch_template('associate') . '";'); |
#4
|
||||
|
||||
![]()
assuming he wasn't just needing to implode the array
PHP Code:
![]() |
#5
|
|||
|
|||
![]()
Pretty much the same
![]() |
#6
|
||||
|
||||
![]() Quote:
![]() |
#7
|
|||
|
|||
![]()
Thanks for all the help. But (and yes I know its antique) I am still using vbulletin 2.36. fetch_template does not exist in 2.36. Any other suggestions?
This is what I have and it only displays PHP Code:
and then nothing after the comma. Thanks, Parker |
#8
|
|||
|
|||
![]()
oooooooo v2.36 well.. I don't know 2.36 but try changing:
$ass_groupurl=$rows['associateurl']; $ass_group=$rows['associate']; to $ass_groupurl=$rows->associateurl; $ass_group=$rows->associate; |
#9
|
|||
|
|||
![]()
Jolten:
That is what I used the first time and that didn't work either. In other words I have used $rows['associateurl'] and $rows->associateurl and neither one produces other than one result. |
#10
|
||||
|
||||
![]()
Parker, just a tip, surround your code with [ php ] [ /php ] tags for clarity, makes it easier for people to read and thefore help
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|