How do I echo a comma on all but the last value? Here\'s my code:
while ($servdescarrayrow = mysql_fetch_array($servdescarray)) {
ECHO $servdescarrayrow
$out = $mydb->getOne("SELECT group_concat(serv_desc) FROM table");
where $mydb is a database class, getOne() is a helper function returning first col of the first row and group_concat() output is limited to 1024 bytes but can be altered by setting appropriate variable.
But of course an average enthusiast from this site will always use generic PHP for such a task, as nobody will tell him there are more intelligent ways.