The Arcive of vBulletin Modifications Site. |
|
|
#1
|
||||
|
||||
|
Here's the code that I'm working with:
Code:
$GetUser = $DB_site->query("select s.*,u.* from ".TABLE_PREFIX."session s
left join ".TABLE_PREFIX."user u on (u.userid = s.userid) where s.location like '%test.php%'");
while($UserIN = $DB_site->fetch_array($GetUser)){
if(!$store_c[$UserIN['userid']]){
if($UserIN['userid']){
$activeusers .= "<a href='member.php?u={$UserIN['userid']}'>{$UserIN['username']}</a>, ";
}
}
}
Quote:
|
|
#2
|
|||
|
|||
|
Add everything to an array in the loop, then use implode(", ", $arrays_name) to add the commas.
I also wrote an English sentence comma delimiter in Java it if helps (operates on an array of Objects). |
|
#3
|
||||
|
||||
|
Ehh... I apologize for my ignorance, but I'm not very familiar with PHP. Could you further elaborate?
|
|
#4
|
|||
|
|||
|
PHP Code:
|
|
#5
|
||||
|
||||
|
Aye! Well, thank you for that. I appreciate the assistance.
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|