I'm using 2 functions. The first function pulls the following information:
$availcourse = "SELECT * FROM organization_courses oc left join course c on oc.courseid=c.id WHERE organizationid=$orgid ORDER By category";
$aresults = mysql_query($availcourse);
The second function pulls this information:
$depcourse = "SELECT * FROM organization_dep_courses odc left join course c on odc.courseid=c.id WHERE depid=$departmentid ORDER By category";
$dcresults = mysql_query($depcourse);
My question is, how would I keep records from function #1 from displaying in function #2 if they are the same? Obvious similarities in both results will be the courseid
I hope that makes sense.