![]() |
Removing trailing comma in loop?
I've got a ranking script using the query below.
PHP Code:
PHP Code:
|
Try:
$otherbits .= ', ' . trim($otherbits); |
Quote:
|
After.
|
Like so, right?
PHP Code:
http://www.goldhelmet.com/rankings.php?week=1 |
$otherbits = ', ' . trim($otherbits);
Sorry |
Hmm, still no go. Wondering if it is something wrong with my if statement.
|
Put this above the eval:
$otherbits .= ', ' . trim($otherbits); |
No go. Duplicates the list numerous times. I tried without the . as well and it just prints like n number of ,s and then the list as it did before.
--------------- Added [DATE]1207013300[/DATE] at [TIME]1207013300[/TIME] --------------- Got it. I placed $otherbits = trim($otherbits, ', '); after the loop and it got the rangly rascal! Thanks for the gentle kick in the arse! |
Above the eval, right?
|
All times are GMT. The time now is 04:12 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|