How to separate dynamic text by comma in a loop to end in without comma ?
Hi there, I'm trying to use comma (, ) or this ( | ) to separate dynamic text in a loop but always ends in comma. Here is an example what I'm referring to
<?php
$wa_startindex = 0;
while(!$Meta_RS->atEnd()) {
$wa_startindex = $Meta_RS->Index;
?>
<li><a href="#"><?php echo($Meta_RS->getColumnVal("name")); ?>, </a></li>
<?php
$LocaleMeta_RS->moveNext();
}
$Meta_RS->moveFirst(); //return RS to first record
unset($wa_startindex);
unset($wa_repeatcount);
?>
RESULTS
name1, name2, name3, name4, etc
so my idea is to end it like this name1, name2, name3, name4 using WebAssist