I have a result set that is returned using this code:
while ($row = mysql_fetch_array( $result )) { echo "ID ".$row['v2id']; }
it returns ID 2ID 3ID 4ID 8
how would I convert this to comma separated values and then store them in a variable?
therefore, if I chose a variable, the final result should look like 2, 3, 4, 8
James rand
source share