How do I echo a comma on all but the last value? Here\'s my code:
while ($servdescarrayrow = mysql_fetch_array($servdescarray)) {
ECHO $servdescarrayrow
I am wondering why there was a dozen answers to your first question and noone to answer the edited part.
Nope, it shouldn't work. Because $servdescarrayrow variable represents only one row and you and thus the whole code makes no sense.
Although you can involve the number of returned records into process and get desired result, I doubt you really need that.
Not to mention that with the way you echo, you will always have the trailing comma anyway.