Got it.
OK. This is not the 'done' thing. You should really create a third table to store the one-to-many relationship.
Having said that, if you are sure that your string is well-formed, you could do ...
//replace $c = $row["co_workcat1"];
$c = explode(' ', $row["co_workcat1"]);
//...
//replace if($c == $i) {
if(in_array($i, $c)) {
Should do it.
P.
EDIT : if(in_array($i, $c) needed an extra ')'