Below is the script i am using to show the list of checkboxes for the user to choose from. When they make their selection i want to take the ones they chose and list them using a comma between the chosen so i can add them to the database into one value. I don't know if i have to use a string or how to even begin.
//CHECKBOX SELECTION
$sql5 = "SELECT * FROM nuke_worship_inv_list";
$result5 = $db->sql_query($sql5);
while($row = $db->sql_fetchrow($result5)) {
$category = $row['category'];
echo " <input type=\"checkbox\" name=\"user_inv_worship\" value=\"$category\">:$category";
echo "<br>";
}