I have tried many different things to do this and all my ideas have failed me. How do i get rid of the last comma after running this while loop?
<body onload="
<?php while($row = mysql_fetch_assoc($thing3)): ?>
checkEdits_<?php echo $row['directory_name']; ?>(),
<?php endwhile; ?>
">
It adds the last comma at the end which ruins the whole script.
The php while(loop) puts this out when ran through the dom:
<body onLoad="checkEdits_juk(), checkEdits_HTML(), checkEdits_JAVASCRIPT(), checkEdits_JQUERY(),">
except i don't want the last comma at the end. Is their a way to get rid of it?